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.
Printable View
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++;
}