seekp

Syntax:

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