I am trying to write to an outpu.dat file from an array called Clients in reverse order
this is what the function looks like
if ((FilePtr = fopen("Output.dat","w")) ==NULL)
printf("Error : File cannot open");
for (count =4; count=0; count--)
fwrite(&Record[count], sizeof(struct Clients), 1, FilePtr);
while (fscanf(FilePtr, "%c", &Lname) !=EOF)
fscanf(FilePtr,"%c", &Lname) !=EOF)
printf("%c%c", Lname, Fname);
Can anyone tell why this generates an unexpected EOF error C1004.
There seem to be no syntax errors!!!
I tried to change the count decrement with no success