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 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.
Scannerwith disk files.
In our past programs, what input stream has been used with