I have a .dat file with one long row of integers separated by a space. I need to load this file into a 2D vector of specific rows and columns. Any pointers on where to start would be greatly appreciated. So far, all my code does is successfully open the file.
This code assume you already know the number of rows (ROW) and columns (COL) of your matrix.
EDIT:: I read in numbers columnwise, which is the FORTRAN standard. In c++ I suppose is better to read the values row by row, but I am not 100% sure about that (in c I am sure).