Introduction to the I/O Stream Classes

This page identifies common input and output tasks you can perform in C++ programs, and shows how you can accomplish these tasks using the I/O Stream Library. The tasks are:

The I/O Stream Classes and stdio.h

In both C++ and C, input and output are described in terms of sequences of characters, or streams. The I/O Stream Classes provide the same facilities in C++ that stdio.h provides in C, but it also has the following advantages over stdio.h: