So i have this .dat file that looks like this kind of:
with a whole bunch of 10 digit binary codes. I am trying to read in from that file and store what I see in a corresponding 2d array. With my code, my output looks like this:
The first row works great, but then i start losing the first bit from each row and it starts doing weird things with the return spacing. I'm not sure what I'm doing wrong! Any help is greatly appreciated as I cannot finish this assignment without getting this step right ;;
where \n is the newline character. You have to clear the newline after each line before reading more data into codesTable.