Created 01/14/99; revised 08/13/99; 01/20/00

CHAPTER 21 --- File Input and Output

You already know what a file is since 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.

Chapter Topics:

  • Idea of a file.
  • Text files.
  • Output redirection to a text file.
The next chapter will discuss how to read data from a file.

QUESTION 1:

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

Click Here after you have answered the question