Hey guys. I have a problem. I have to read in 2 arrays from 1 file. I know how to read in an array with known elements but this time the number of rows/columns are in the file. The first line has the dimensions of the array(rows columns) then the array is below it. The next line is the dimensions of the second matrix(rows columns). Normally I would do:
But the number of elements is not know. I dont get how to just read the first line then use those numbers to define how many lines to read and then do the same thing over again on the second matrix. Thanks in advance.