I have a homework assignment where I have files of numbers to read into an array and then do something with them.
Now, my problem isn't reading the files in. I know how to do that. What i'm unsure on is how to get it to read one line into the array, so that the program can do whatever it is I'm supposed to do, and read in the next line when it's done working with that line of numbers.
The txt files are pretty big, with something like 90 numbers per line and each line ended with a line return.
Any tips on how to make the program read just one line into the array at a time would be greatly appreciated. Thank you.