basic_filebuf* open (const char* filename, ios_base::openmode mode);
basic_filebuf* open (const char* filename, ios_base::openmode mode);basic_filebuf* open (const string filename, ios_base::openmode mode);
value | stands for | access |
---|---|---|
ios_base::in | input | File open for reading, supporting input operations. |
ios_base::out | output | File open for writing, supporting output operations. |
ios_base::binary | binary | Operations are performed in binary mode rather than text. |
ios_base::ate | at end | The put pointer (pptr) starts at the end of the controlled output sequence. |
ios_base::app | append | All output operations happen at the end of the file, appending to its existing contents. |
ios_base::trunc | truncate | Any contents that existed in the file before it is open are discarded. |
|
).this
if successful.
|
|