seekg [C++ Reference]
Keywords: io,seekg
Date: 2009-06-11T02:06:01-0700

## seekg

Syntax:

        #include <fstream>
        istream& istream::seekg( off_type offset, ios::seekdir origin );
        istream& istream::seekg( pos_type position );

The function seekg() is used with input streams, and it repositions the “get” pointer for the current stream to offset bytes away from origin, or places the “get” pointer at position.

Related Topics: seekp, tellg, tellp, seekdir