What is a good way to read in a hundred 6-digit numbers from a text file
example of what the text file looks like:
006214
034567
098765
037465
etc.
What is a good way to read in a hundred 6-digit numbers from a text file
example of what the text file looks like:
006214
034567
098765
037465
etc.
Code:int numbers[100]; int i = 0; while(!inFile.eof()) { inFile>>numbers[i]; i++; }
Last edited by 7stud; 04-25-2003 at 03:08 AM.