typedef T3 openmode;
static const openmode app, ate, binary, in, out, trunc;
The type is an enumerated type T3
that describes an object that can store the opening mode for several iostreams
objects. The distinct flag values are:
- app, to seek to the end of a stream before each insertion
- ate, to seek to the end of a stream when its controlling object is first created
- binary, to read a file as a binary stream, rather than as a text stream
- in, to permit extraction from a stream
- out, to permit insertion to a stream
- trunc, to truncate an existing file when its controlling object is first created