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