What I need to do is:
1. Define a class called Student, which includes ID, FirstName, LastName, and Email.
2. Write programs to read the records from the file, sort the records on ID, and output them to a new file in the following order:
ID
FirstName LastName
What I need to know is what function should I use to read the info in from the text file to my student class. Fstream does not seem to have one built in, at least I have been unable to find any info on it so far. Could I use fgets to do it? If anyone could point me in the right direction I would appreciate it. And sorry I don't have any code but since I don't really know what to use I can't do much. Thanks in advance.