Overview of I/O Streams:

Similarly, a program can send information to an external destination by opening a stream to a destination and writing the information out sequentially, like this:

Reading Writing open a stream while more information read information close the streamopen a stream while more information write information close the stream