|
From: Ioannis V. <no...@ya...> - 2001-09-04 16:39:10
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Michael Codadeen > Sent: Tuesday, September 04, 2001 12:00 PM > To: dev...@li... > Subject: RE: [Dev-C++] how to use strings > > > Hi Johannes, > > I believe that fprintf() does move the file pointer it just > looks as though > it isn't, try using ftell() to print the file position. > > I believe that because there is a struct being written to the > file via > fread() and then a string via fprintf() this is causing the fread() *reads*. fwrite() writes. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |