Working with ascii data files
Hi,
I am working with ascii data files, in fact they are matrix stored in ascii data files.
Someone can recomend a tutorial or something like that?
Thanks
A tutorial for what?
I have a matrix (double values) stored in an ASCII data file
11.33 12.33 13.33
14.33 15.33 16.33
17.33 18.33 19.33
I think to use two
for
loops to load the values to a matrix in memory,..., some think like
1 2 3 4 5 6
|
vector matrix[cols][lines];
for(int i = 0; i < lines; i++) {
for(int j = 0; j < cols; j++) {
matrix[i][j] = iFile.get();
}
}
| |
There is some way I can load the complete matrix stored in file to a matrix in memory?
Topic archived. No new replies allowed.