[Dev-C++] FILE positionning problem.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Provic <pr...@wa...> - 2003-07-07 08:57:49
|
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 would be pleased if you could help me ! Thanks a lot ! Hervé |