istream& seekg( streampos pos );
istream& seekg( streamoff off, ios::seek_dir dir );
Parameters
pos
The new position value; streampos is a typedef equivalent to long.
off
The new offset value; streamoff is a typedef equivalent to long.
dir
The seek direction. Must be one of the following enumerators:
Remarks
Changes the get pointer for the stream. Not all derived classes of istream need support positioning; it is most often used with file-based streams.
istream Overview | Input Stream Classes
See Also istream::tellg, ostream::seekp, ostream::tellp