Anonymous user
Reverse the order of lines in a text file while preserving the contents of each line: Difference between revisions
Reverse the order of lines in a text file while preserving the contents of each line (view source)
Revision as of 16:20, 3 August 2021
, 2 years ago→{{header|REXX}}: added wording to the REXX section header.
(added Perl programming solution) |
m (→{{header|REXX}}: added wording to the REXX section header.) |
||
Line 89:
=={{header|REXX}}==
No assumptions were made concerning line/record termination, as REXX takes care of that.
<lang rexx>/*REXX pgm reads a file, and displays the lines (records) of the file in reverse order. */
parse arg iFID . /*obtain optional argument from the CL.*/
|