Using C, How can I get text from one file and produce another file
I need to write a program in C that reads data from an existing file, say studentgrades.dat. Each student's info is written in two lines. Last Name, First Name on the first line and number of points on the second line.

The C program doesn't know the end of the .dat file but I assume it knows its end through EOF. From there C program should output to another file that will list the First Name Last Name and Letter matching the grade amount.

Then a list of all the students should follow

A count of students should be listed
An average grade should be listed.
Using C, How can I get text from one file and produce another file
===

I need to write a program in C that reads data from an existing file, say studentgrades.dat. Each student's info is written in two lines. Last Name, First Name on the first line and number of points on the second line.

The C program doesn't know the end of the .dat file but I assume it knows its end through EOF. From there C program should output to another file that will list the First Name Last Name and Letter matching the grade amount.

Then a list of all the students should follow

A count of students should be listed
An average grade should be listed.