📜  打开操作的标志 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:57.653000             🧑  作者: Mango

代码示例1
in    input    File open for reading: the internal stream buffer supports input operations.
out    output    File open for writing: the internal stream buffer supports output operations.
binary    binary    Operations are performed in binary mode rather than text.
ate    at end    The output position starts at the end of the file.
app    append    All output operations happen at the end of the file, appending to its existing contents.
trunc    truncate    Any contents that existed in the file before it is open are discarded.