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
ofstream
istrstream
ostrstream
| Files | Reading and writing files. |
| Strings | Reading and writing strings in memory. |