home *** CD-ROM | disk | FTP | other *** search
- These two code samples show two equivalent methods of copying data
- from one file to another by reading the input file one character
- at a time and writing each character to the output file. In the
- code on the left, the get() function is used to read single
- characters from source and the put() function is used to write
- them to dest. In the code on the right, the input operator is
- used to extract character values from source and the output
- operator is used to insert them into dest.
-