Mail Archives: djgpp/1993/03/08/14:28:44
I am having problems with the ifstream seekg member: it seems to always
return EOF.
In particular, I am doing something along these lines:
int main(int argc, char **argv)
{
    ifstream("in");
    while ( !in.eof() ) {
	read data and parse it
    }
    in.seekg(0);	// tried seekg(0, ios::beg) also
    while ( !in.eof() ) {
	re-read data
    }
}
Looking in the iostream library code I found that there is a member
seekg which always returns EOF... Am I doing something wrong?
-----
Don Bowman			bowman AT waterloo DOT hp DOT com		519-883-3085
- Raw text -