1 #ifndef TIL_READTXTFILE_H 2 #define TIL_READTXTFILE_H 17 ifstream f (filename);
21 throw std::runtime_error(
"Unable to open file");
28 numeric_array<T,3> tv;
33 const int SIZE_BUFF = 100;
41 tv[0] = castValue<double, T>(x);
42 tv[1] = castValue<double, T>(y);
43 tv[2] = castValue<double, T>(z);
50 f.getline(buff, SIZE_BUFF);
void readTXT3DPoints(const char *filename, std::vector< numeric_array< T, 3 > > &v)