Home Segments Index Top Previous Next

446: Mainline

A stream is a sequence of data objects. To read data from a file, you create an input file stream that flows from an input file to your program. Similarly, to write data into a file, you create an output file stream that flows from your program to the output file.

             file stream                   file stream 
Input file ---------------> Your program ---------------> Output file