created: June 6, 2000; revised: 07/07/2002, 08/06/2002, 06/08/2006
This chapter explains how to create a text file on the hard disk and how to write character data to it.
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.
(Review: ) What is the ancestor class of all streams that do character-oriented output?