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: