|
Slide 2.7: Seeking Slide 2.9: The Unix Home |
|
void open( const char * filename, openmode mode = ios_base::in | ios_base::out );openmode is in or out.
streampos tellp( );streampos tellg( );ostream& seekp( streampos pos );istream& seekg( streampos pos );ostream& write( const char* str, streamsize n );str and following by successive characters in the array until the number of characters specified by n has been successfully written or until an error occurs in the output sequence.
No check for ending null characters is done.