在线文档教程
C++
输入/输出 | Input/output

std::ios_base::openmode

科技促进发展:监督办[医]基数::开式

typedef /*implementation defined*/ openmode;
static constexpr openmode app = /*implementation defined*/ static constexpr openmode binary = /*implementation defined*/ static constexpr openmode in = /*implementation defined*/ static constexpr openmode out = /*implementation defined*/ static constexpr openmode trunc = /*implementation defined*/ static constexpr openmode ate = /*implementation defined*/

指定可用的文件打开标志。这是一个BitmaskType,定义了以下常量:

ConstantExplanation
appseek to the end of stream before each write
binaryopen in binary mode
inopen for reading
outopen for writing
truncdiscard the contents of the stream when opening
ateseek to the end of stream immediately after open

另见

openopens a file and configures it as the associated character sequence (public member function of std::basic_filebuf)
(constructor)constructs a basic_stringbuf object (public member function of std::basic_stringbuf)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/io/IOS[医]基/开模