本目列出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 |