Hi I want to know what the easiest way of reading information from a file is, all the files are formated as
line of text
[# lines of ints] [# of ints per line]
int int int int
int int int int
etc.
Here is an example file:
HS_problem_1 problem_10_10
10 10
0 0 0 0 1 0 0 1 0 0
0 0 1 0 0 1 0 0 0 1
1 0 0 1 0 0 0 0 0 1
1 0 1 0 1 0 1 1 0 0
0 0 0 0 0 0 0 1 1 0
0 0 0 0 1 0 1 0 1 0
0 0 0 0 0 0 1 0 0 0
0 1 0 0 0 0 0 1 0 0
0 0 0 1 0 0 1 0 0 0
0 1 0 0 0 0 0 0 1 0
How would i go about it?
thanks