OK. Here's my immediate thoughts: Each line represents a student. A student can be represented as a single structure. Each field on a single line is a separate data member within the structure.
By looking at the file, I've seen the number 4, which appears before the student entries. I'm assuming that's the student entry count. If that's the case, extract the number and then dynamically create an array of 4 students. After that, iterate through the array. With each cycle, extract all fields on a single line.
When all extractions are complete, iterate through the array again (or fuse the two loop together) and print the students information to the console with std::cout. When all is gravy, delete the array before exiting the program.
The thing is i don't know how to start this thing i know how to have it read in from a text file but then i don't know how to set it up. How do i set up the code to read theres going to be 4 students and then to categorize each student with the number of courses they took. i know how to calculate the gap i just don't know what code to use to bring the info in a certain order and to repeat itself for every student even if its 4 students or 400