condition state Flags and associated functions usable by any of the stream classes that indicate whether a given stream is usable.
file mode Flags defined by the
fstreamclasses that are specified when opening a file and control how a file can be used.
file stream Stream object that reads or writes a named file. In addition to the normal
iostreamoperations, file streams also defineopenandclosemembers. Theopenmember takes astringor a C-style character string that names the file to open and an optional open mode argument. Theclosemember closes the file to which the stream is attached. It must be called before another file can beopened.
fstream File stream that reads and writes to the same file. By default
fstreams are opened withinandoutmode set.
ifstream File stream that reads an input file. By default
ifstreams are opened withinmode set.
inheritance Programming feature that lets a type inherit the interface of another type. The
ifstreamandistringstreamclasses inherit fromistreamand theofstreamandostringstreamclasses inherit fromostream. Chapter 15 covers inheritance.
istringstream String stream that reads a given
string.
ofstream File stream that writes to an output file. By default,
ofstreams are opened withoutmode set.
ostringstream String stream that writes to a given
string.
string stream Stream object that reads or writes a
string. In addition to the normaliostreamoperations, string streams define an overloaded member namedstr. Callingstrwith no arguments returns thestringto which the string stream is attached. Calling it with astringattaches the string stream to a copy of thatstring.
stringstream String stream that reads and writes to a given
string.