Home Segments Top Top Previous Next

472: Mainline

A stream is a sequence of values. To read bytes from a file, you create a file input stream. Then, to convert those bytes into characters appropriate for your operating system, you create an input-stream reader:

File input stream 
 | 
 | Bytes 
 v 
Input-stream reader 
 | 
 | Characters 
 v 
Your program