The <iostream> library automatically defines a few standard objects:
The <fstream> library allows programmers to do file input and output with the ifstream and ofstream classes.
C++ programmers can also do input and output from strings by using the String Stream class.
Some of the behavior of the C++ I/O streams (precision, justification, etc) may be modified by manipulating various io stream format flags.
Display all entries for C++ I/O on one page, or view entries individually: