f78
You can control the output position (on output streams that actually support positions, typically files) with the following methods.
streampos ostream::tellp () Method
Return the current write position in the stream.
ostream& ostream::seekp (streampos loc) Method
Reset the output position to loc (which is usually the result of a previous call to ostream::tellp). loc specifies an absolute position in the output stream.
ostream& ostream::seekp (streamoff loc, rel) Method
Reset the output position to loc, relative to the beginning, end, or current output position in the stream, as indicated by rel (a value from the enumeration ios::seekdir):