I'm trying to read from a txt file into a two dimension array. The text file contains following data.
Code:
0 0 0 1 0 0 1 0 1 0 0 1
1 0 1 0 1 0 1 0 1 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0
1 1 0 1 0 1 0 1 1 1 1 1
I want to create a two dimensional array (in this case 4X12 array) by reading the txt file.
Can anyone give me a hint on how to do this?
Thanks