home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / 014r / merge.zip / MERGE.DOC
Text File  |  1986-11-07  |  768b  |  26 lines

  1. /*  MERGE.C
  2.  
  3.     Copyright (c) 1984, Gordon Lee Waite
  4.                 413 W. Pleasant Street
  5.                 Maquoketa, IA  52060
  6.  
  7.     summary:   merge infile1 infile2 outfile
  8.  
  9.     arguments: infile1 and infile2 are the two pre-sorted input
  10.            files.
  11.  
  12.            outfile is the name of the output file.
  13.  
  14.     options:   none
  15.  
  16.     description:
  17.  
  18.     MERGE is used to merge two sorted files into one larger sorted
  19.     file.  The program reads lines from each of the two input
  20.     files, compares them, then writes the "lesser" line to the
  21.     output file.  Comparison only continues until a difference is
  22.     found, so line length does not play a part in the merge.  The
  23.     output of this program can be sent to a file, or to the console
  24.     by use of the CON: device name for the output filename.
  25. */
  26.