|
Reading in data from file line by line
I'm working on a project that takes a file filled with lines of integers and I want to take each line and store it into an array.
So for example:
File1.txt
5 6 3 5 4 5 8 7 9
2 6 5 4 9 8 8 6 6
3 1 2 6 5 4 8 9 5
3 3 2 1 5 6 5 8 4
I want to read each line of those integers into an array. So the first line would be its' own array, line 2 would be its' own array, so on and so forth. Assume you know the size of the arrays (in this case let's say nine).
Thoughts Suggestions?
|