cppreference.com > C++ I/O > seekp
seekp
Syntax:
  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().