Home   Notes   Contact Me

streams C++


ios_base::openmode

These are used a bit masks and con be or'd together

biteffect
std::ios_base::appappend (seek to the end of the stream before outputting)
std::ios_base::ateat end (seek to the end of the stream on openning)
std::ios_base::binarybinary (?Windows cares only?)
std::ios_base::inin
std::ios_base::outout
std::ios_base::trunctruncate (replace the original file, makes file length zero)

ofstream

method
void open( const char* zstr, ios_base::openmode mode = out | trunc)

Offsite Info