This chapter discusses how to use the
for input from files and how to use the
for output to files.
This chapter is optional.
Except in a few exercises, disk I/O is not much
used again in these pages until the chapters on
However, many interesting programs require disk I/O,
so it is useful to know.
PrintWriter appear in the AP Computer Science test.
Scannerwith disk files.
In our programs so far, what input stream has been used with