文法:
#include <fstream> ostream& ostream::seekp( off_type オフセット, ios::seekdir 始点 ); ostream& ostream::seekp( pos_type 位置 );
seekp()関数は出力ストリームに対して使用されますが、それ以外の点に関しては、seekg()と非常によく似ています。
関連トピック: seekg, tellg, tellp, seekdir