Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

istream::seekg

Visual Studio 6.0

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:

  • ios::beg   Seek from the beginning of the stream.

  • ios::cur   Seek from the current position in the stream.

  • ios::end   Seek from the end of the stream.

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 OverviewInput Stream Classes

See Also   istream::tellg, ostream::seekp, ostream::tellp

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.