Created: 03/19/2006
Scanner and PrintStream
This chapter discusses how to use the Scanner class
for input from files and how to use the PrintStream class
for output to files.
This chapter is optional. Except for chapter 24, disk I/O is not much used again until it is taken up in more detail in chapter 80. However, most interesting programs do some disk I/O, and reading this chapter may enable you to write some of them.
Scanner with disk files.ScannerPrintStreamprint() and println() Methods of PrintStream
In our past programs, what input stream has been used with Scanner ?