input text file help needed

My program needs to read data from a text file. The first line of data contains correct answers for a test, the rest of the data contains student id's and their answers to the test. How do I input the correct answers data only, then the rest of the file??
Topic archived. No new replies allowed.