Contents|Index|Previous|Next

Classes for Files and Strings

There are two very common special cases of input and output: using files, and using strings in memory.

libio defines four specialized classes for these cases.

- ifstream
  Methods for reading files.
- ofstream
  Methods for writing files.
- istrstream
  Methods for reading strings from memory.
- ostrstream
  Methods for writing strings in memory.

For more information, see the following documentation’s discussion.

- Reading and writing files
- Reading and writing in memory