go to home page   go to next page

Created: 01/14/99; revised: 08/13/99, 01/20/00, 07/13/02, 05/21/03, 03/19/06, 08/31/08, 11/25/10, 08/19/14


CHAPTER 21 — Files and File Output

Files are extremely useful because often the data for a program comes from a file and often the results are stored in a file. You already know about files. You have been creating and using files in following these notes (and probably in your other work, as well). This chapter discusses how to send the output of a program to a file.

The next chapter discusses how to read data from a file. For a full discussion of file I/O you will have to wait until much later in these notes.

Chapter Topics:


QUESTION 1:

What is a file? (Try to think of a one sentence definition.)