Hi,
I need to read all the records in a file till the end and print it to an outputfile.
So I used feof() -
while(feof(fp_infile) !=0)
{
fread(xxxx);
fread(xxxx);
fprintf(fp_outfile, XXXXX);
}
But this is not giving me any output i.e, the output file is empty.
Can anyone help??? Is the usage of feof() wrong??
jazz