io:seekg

C++ Reference

seekg

Syntax:

    #include <fstream>
    istream& seekg( off_type offset, ios::seekdir origin );
    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