RE: [Dev-C++] FILE positionning problem.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-07-07 13:02:24
|
Why - aren't we supposted to be clairvoyant and simply "see" the problem before us in the air :-) /Per W On Mon, 7 Jul 2003, Ioannis Vranos wrote: > > -----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 > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |