The first number in each line represents the ID number, and the rest of numbers are varying (grade and credit hour)
How would I read the ID number in by itself and then read the grade and credit hour one set a time?
My teacher recommended that we have another loop in the while loop to read the grade and credit hours.
something like this
1 2 3 4
while (!infile.eof())
{
OutputFile<<ID<<setw(15)<<"Coming Soon"<<endl;
}
"while (!infile.eof())" is an error, but the idea is sound: have a loop that reads the file line by line, and another loop inside that reads the individual numbers from the line. For example,