This chapter discusses some useful techniques for processing data from an input file. 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.
The programs in this chapter read and write disk files
using Scanner
and PrintWriter
as described in the previous chapter.
(Not again! ) What are the three types of loops?