RE: [Dev-C++] FILE positionning problem.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@em...> - 2003-07-07 10:47:25
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Provic > Sent: Monday, July 07, 2003 11:59 AM > To: dev...@li... > Subject: [Dev-C++] FILE positionning problem. > > > Hi ! > My current problem is a little weird : I read in the man-pages that > fgetc increases automatically the position in a current opened file. > So my program reads each character of this file in a while : > it should > do that, but in fact it doesn't. > I resolved that by repositionning each time by fseek (param : > SEEK_SET) > at the right position ; but a file access monitoring daemon showed me > that my program isn't optimised at all, it performs 2 fseek which are > exactly the sames... > Where is the bug ? > I verified my code, no need to include it : no pb here. I think you had better post your code. :) Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |