io:seekp

C++ Reference

seekp

Syntax:

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

The seekp() function is used with output streams, but is otherwise very similar to seekg().

Related Topics: seekg, tellg, tellp