Data flow is into the program
If input stream flows from keyboard, the program willaccept data from the keyboard
If input stream flows from a file, the program will acceptdata, Streams and Basic File I/O
6.2 Tools for Stream I/O
6.3 Character I/O
from the file
I/O refers to program input and output
Input is delivered to your program via a stream object
Input can be from
The keyboard
A file
Output is delivered to the output device via a streamobject
Output can be to
The screen
A file, The keyboard input and screen output we have used so far deal with temporary data.
Files allow you to store data permanently!
Data output to a file lasts after the program ends
An input file can be used over and over
No typing of data again and again for testing
Create a data file or read an output file at yourconvenience
Files allow you to deal with larger data sets