Hello All,
I'm creating a program that reads a file.dat and I need to input that in a matrix, it can be 2x2,3x3,4x4 or 5x5. I'm not exactly sure how to do that.
The file.dat looks like this:
2 1 2 3 5
3 1 3 8 5 7 3 9 2 4
2 1 5 2 3
3 3 3 3 3 3 3 3 3 3
Notice the spaces..
The first number in the line, for example 2 1 2 3 5, 2 means that its going to be a matrix 2x2.
Thanks in advance,
Doug