home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH11 / A11201.TXT < prev    next >
Encoding:
Text File  |  1993-08-04  |  509 b   |  9 lines

  1. You can perform file I/O in C++ by specifying that a stream's
  2. ultimate consumer or producer is a file.  You do this by opening
  3. the file and associating it with the stream object.  If you open
  4. the file for input, the characters you insert in the stream are
  5. actually written to the file.  If you open the file for output,
  6. the characters that you extract from the stream are actually read
  7. from the file.  This allows you to perform file I/O using the same
  8. syntax that you use for the predefined streams.
  9.