I need help ASAP figuring out how to fix my problem with reading a text file, line by line, and stopping on each line, ended by a -1 (sentinel-control)
Here are the conditions: The text file is a list of grades for a class. Each line indicates a separate grade (lab, exam, homework, etc.) Each line is ended by -1, which tells the program to stop reading that line. I need to read the text file, line by line, WITHOUT USING A STRING, ending at the -1. I can read the first line, but how do I read the next line, skipping the first?