basic_filebuf::seekoff

Overrides basic_streambuf::seekoff()

  virtual pos_type seekoff
     (off_type off, 
     ios_base::seekdir way,
     ios_base::openmode which = ios_base::in | ios_base::out);  
Remarks

Sets the offset position of the stream as if using the C standard library function fseek(file, off, whence).

Seekoff function returns a newly formed pos_type object which contains all information needed to determine the current position if successful. Returns an invalid stream position if it fails.