Say I have a file like:
and say I want to give this file to main as an argument.
and I want main to read the file and put the data
in a multidimensional array like:
after the process myarray should contain data
myarray will be 2
myarray will be 4
and so on...
how can I do it?
thanks for helping:):):)
you will either need to use a char array or ignore the # signs storing a default number in it's place.
you need to use nested loops to read in the data in a sequential fashion.
inputStream >> array[i][j];