Reverse the order of lines in a text file while preserving the contents of each line: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added a 2nd version which if faster and uses less memory (storage).)
m (→‎version 2: added two other REXXes.)
Line 277: Line 277:
::*   R4 REXX
::*   R4 REXX
::*   ROO REXX
::*   ROO REXX
::*   CMS REXX
::*   CMS REXX compiler
::*   CMS OREXX
<lang>/*REXX pgm reads a file, and displays the lines (records) of the file in reverse order. */
<lang>/*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.*/
parse arg iFID . /*obtain optional argument from the CL.*/