home *** CD-ROM | disk | FTP | other *** search
- You can perform file I/O in C++ by specifying that a stream's
- ultimate consumer or producer is a file. You do this by opening
- the file and associating it with the stream object. If you open
- the file for input, the characters you insert in the stream are
- actually written to the file. If you open the file for output,
- the characters that you extract from the stream are actually read
- from the file. This allows you to perform file I/O using the same
- syntax that you use for the predefined streams.
-