So I have a text file which contains information like the following:
3800 Victor Lee; 2.8
This is a student ID, name, and gpa.
The file begins with an integer indicating how many students are listed in the text file.
I have already scanned in the integer value from the text file and used it to initialize a size variable.
My problem is that I must scan each line student information into an array of strings and I can't seem to figure it out.
Ideally it would resemble:
temp = "first line of information from file";
temp = "second line"
and so on.
I have tried several variations of a while loop using fgets but no results have turned up.