Newsgroups: comp.lang.c++,comp.os.msdos.djgpp From: Peter Berdeklis Subject: Re: Can not reset an open ifstream file. Message-ID: Nntp-Posting-Host: chinook.physics.utoronto.ca Sender: news AT info DOT physics DOT utoronto DOT ca (Steve Kotsopoulos) Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: University of Toronto - Dept. of Physics In-Reply-To: <51qo44$e2@lion.cs.latrobe.edu.au> Date: Thu, 19 Sep 1996 16:19:45 GMT References: <51qo44$e2 AT lion DOT cs DOT latrobe DOT edu DOT au> Lines: 15 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Once the eof() bit is set in an fstream any further attempts to manipulate the stream will fail, just like it will any time fstream::fail() != 0. You must call fstream::clear() to reset the stream before you can reposition or read from the file again. P.S. Why would you post this to comp.lang.c? Why comp.os.msdos.djgpp for that matter? Pete --------------- Peter Berdeklis Dept. of Physics, Univ. of Toronto