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);
值 | 代表 | access |
---|---|---|
ios_base::in | 输入 | File open for reading, supporting input operations. |
ios_base::out | 输出 | File open for writing, supporting output operations. |
ios_base::binary | binary | 操作以二进制模式执行,而非文本模式。 |
ios_base::ate | 在末尾 | The put pointer (pptr) starts at the end of the controlled output sequence. |
ios_base::app | append (追加) | 所有输出操作都在文件末尾进行,追加到其现有内容。 |
ios_base::trunc | truncate (截断) | 文件打开前存在的任何内容都将被丢弃。 |
|
)组合。this
if successful.
|
|