start with this
Quote:
The program has to read the file one record at a time
Code:
#include <stdio.h>
#include <stdlib.h>

int main (){
char filename[] = "myfile.txt";
FILE *file = fopen ( filename, "r" );
char line [512];
if ( file != NULL ){
   while ( fgets ( line, sizeof(line), file ) != NULL ){
         printf("%s",line); /* write the line */
   }
   fclose (file);
}
else{
perror ( filename );
}
system("pause");
return 0;
}
now you have a start.
do the rest one thing every time and post your code and question.