created: 01/16/99; revised: 01/20/00, 07/13/02, 05/23/03, 03/22/06
Most programs read their data from one or more files and write their results to one or more files. Usually interaction with the user is done only to specify details of the processing, such as the names of the files. This chapter discusses some useful techniques for processing data from an input file.
The programs in this chapter read and write disk files
using Scanner
and PrintStream
as described in Chapter 23.
(Not again!) What are the three types of loops?