P.S. On further examination, I think the (length*2) thing was a coincidence. Unless length==0, seekg just seems to seek to an arbitrary position in the stream.
I'm having two istream-related problems. Please can somebody help... [ponder]
Problem 1
void loadStuffFromStream (istream& stream)
{
// goes too far!!
stream.seekg( length, ios_base::cur );
}
This always skips (length*2) bytes instead of length. Why does it do this? I thought istream was...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.