Copyright (C) 2000-2012 |
GNU Info (iostream-295.info)Output PositionRepositioning an `ostream' -------------------------- You can control the output position (on output streams that actually support positions, typically files) with these methods: - Method: streampos ostream::tellp () Return the current write position in the stream. - Method: ostream& ostream::seekp (streampos LOC) 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. - Method: ostream& ostream::seekp (streamoff LOC, REL) 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'): `beg' Interpret LOC as an absolute offset from the beginning of the file. `cur' Interpret LOC as an offset relative to the current output position. `end' Interpret LOC as an offset from the current end of the output stream. automatically generated by info2www version 1.2.2.9 |