Jump to content

Stream merge: Difference between revisions

m
→‎version 2: changed wording in the REXX section header.
(Added a Perl section.)
m (→‎version 2: changed wording in the REXX section header.)
Line 769:
<br>and stops reading subsequent &nbsp; ''new'' &nbsp; input files when it encounters a file that doesn't exist &nbsp; (or is empty).
 
No &nbsp; ''heap'' &nbsp; is needed to keep track of which record was written, andnor needs replenishing from its input file.
<lang rexx>/*REXX pgm reads sorted files (1.TXT, 2.TXT, ···), and writes sorted data ───► ALL.TXT */
$=copies('FF'x, 1e5) /*no value should be larger than this. */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.