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

  1. These two code samples show two equivalent methods of copying data
  2. from one file to another by reading the input file one character
  3. at a time and writing each character to the output file.  In the
  4. code on the left, the get() function is used to read single
  5. characters from source and the put() function is used to write
  6. them to dest.  In the code on the right, the input operator is
  7. used to extract character values from source and the output
  8. operator is used to insert them into dest.
  9.