Introduction
In the context of programming the term i/o refers to program input and output
- input will typically come from the keyboard or a file
- output will typically be sent to the screen or a file
In previous chapters we’ve seen how to perform i/o to the keyboard and screen
In this chapter we show how to write programs that perform i/o to files by using a C++ construct known as a stream
Streams are our first examples of objects
You can think of an object as a special type of variable that has its own special-purpose functions that are, in a sense, attached to the variable