Article ID: 146445 - View products that this article applies to.
This article was previously published under Q146445
The istream::seekg() function does not reset the EOF (end of file) state when the stream pointer is already at EOF.
To work around this problem, call ios::clear() for the stream before calling istream::seekg().
You don't need to call clear(), if the stream pointer is not already at EOF.
Article ID: 146445 - Last Review: July 5, 2005 - Revision: 1.1