diff --git a/stim/envi/envi.h b/stim/envi/envi.h index bca10ea..a19652a 100644 --- a/stim/envi/envi.h +++ b/stim/envi/envi.h @@ -83,8 +83,22 @@ public: return true; } + static size_t file_size(std::string filename){ + FILE *p_file = NULL; + p_file = fopen(filename.c_str(),"rb"); + if(!p_file){ + std::cout<<"ERROR: could not open "<