Input/Output(I/O) uses streams. A stream is a general name given to flow of data.
Different streams are used to represent different kinds of data flow. Each stream is associated with a particular class which contains member functions and definitions for dealing with that particular kind of data flow.
The following classes have access to I/O: ifstream, ofstream and fstream.