fseek fread fwrite fflush

Andrew Walduck amewalduck at trillium.waterloo.edu
Sat Apr 13 10:38:17 AEST 1991


I've got a question about fseek, fread, fwrite and fflush....

Is it necessary to do the following?

fflush(fp);
fseek(fp....);
fwrite(fp...);

Or can I just do the following...

fseek(fp....);
fwrite(fp....);

I seem to remember a discussion about this a long time ago, and am
curious...

Thanx
Andrew Walduck




More information about the Comp.lang.c mailing list