first off all use code tags
like this
[ code ]
actual code
[ /code ]
but then without spaces between code ,/code and the brackets.
Then i havent took a look at everything but.
::edit::
here was some code be4
::wooops::
didnt saw this
Code:
#define FNAME "c:\\studrecords.dat"
#define TEMPFNAME "c:\\temp.dat"
that would make it simpler apparently you want to read from c:\\studrecords.dat by doing
Code:
studrecords=fopen("FNAME","r");
this should be
Code:
FILE *studrecords;
studrecords=fopen(FNAME,"r");
/*notice that i didnt used any " around FNAME */