Professional Documents
Culture Documents
Session 14
Session 14
Session Objectives
Discuss IOStreams Work with File IOStreams Format Output stream Create Manipulators
Streams
Can be viewed as a common logical interface to the devices of a computer. Links the physical I / O devices with the C++ I / O system. The stream used to input data to a program is known as input stream. The stream used to output data is known as the output stream. stream.
Types of Streams
There are two types of streams -
Predefined Streams
Whenever a C++ program is executed, there are some predefined streams, which are automatically opened -
Managing Streams
Given below is a list of some classes and the functionality associated with them -
Output -
Output -
Manipulators (1)
There are several classes in the iostream.h header file.
Manipulators (2)
Output -
Output -
Output -
Output -
Output -