From: Oscar F. <of...@wa...> - 2004-07-25 21:21:16
|
Anders Lindén <mi...@ca...> writes: [snip] > for (int i=0; i<8; i++) > fgetc(file); > > fputc(0x20,file); // where does this come in the result file?????? From the C Standard: 7.19.5.3/6 When a file is opened with update mode [...] However, output shall not be directly followed by input without an intervening call to the fflush function or to a file positioning function (fseek, fsetpos, or rewind), and input shall not be directly followed by output without an intervening call to a file positioning function, unless the input operation encounters end-of-file. [snip] -- Oscar |