created: June 6, 2000; revised: 07/07/2002, 08/06/2002, 06/08/2006

CHAPTER 83 — Writing Text Files

This chapter explains how to create a text file on the hard disk and how to write character data to it.

Chapter Topics:

In chapter 21 you used redirection to write text files. This told the operating system to create a file and to send your program's output to it. In this chapter your program has control of file creation and writes output to it.

QUESTION 1:

What is the ancestor class of streams that do character-oriented output?