void open (const char* filename, ios_base::openmode mode = ios_base::in);
void open (const char* filename, ios_base::openmode mode = ios_base::in);void open (const string& filename, ios_base::openmode mode = ios_base::in);
rdbuf()->open(filename,mode|ios_base::in)
成員常量 | 代表 | access |
---|---|---|
in * | 輸入 | 檔案以讀模式開啟:內部流緩衝區支援輸入操作。 |
下可用的型別 | 輸出 | 檔案以寫模式開啟:內部流緩衝區支援輸出操作。 |
binary | binary | 操作以二進位制模式執行,而非文字模式。 |
ate | 在末尾 | 輸出位置從檔案末尾開始。 |
app | append (追加) | 所有輸出操作都在檔案末尾進行,追加到其現有內容。 |
trunc | truncate (截斷) | 檔案開啟前存在的任何內容都將被丟棄。 |
|
)組合。
|
|