本目列出c++的文件打开模式。
| Mode | Descriptinon |
|---|---|
| ios::in | Opens a file for input |
| ios::out | Opens a file for output |
| ios::app | Appends all output to the end of the file |
| ios::ate | Opens a file for output.If the file already exits, move to the end of file. |
| ios::truct | Discards the file contents if the file already exists(This is the default action for ios::out) |
| ios::binary | Opens a file for binary input and output |
本文详细介绍了C++中文件操作的各种模式,包括输入模式、输出模式以及其他特殊模式如追加、定位等,并解释了每种模式的具体用途。

2904

被折叠的 条评论
为什么被折叠?



