delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.lang.c++,comp.os.msdos.djgpp |
From: | Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca> |
Subject: | Re: Can not reset an open ifstream file. |
Message-ID: | <Pine.SGI.3.91.960919121545.9921A-100000@chinook.physics.utoronto.ca> |
Nntp-Posting-Host: | chinook.physics.utoronto.ca |
Sender: | news AT info DOT physics DOT utoronto DOT ca (Steve Kotsopoulos) |
Mime-Version: | 1.0 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |