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

Content added Content deleted
m (changed (draft) task requirements as it stated previously, one could interpret the wording as that the original file was to be overwritten with the lines/records in reverse order/)
Line 2: Line 2:


;Task:
;Task:
Reverse the order of the lines (records) of an entire (input) file.
:*   Read an an entire (input) file   (into memory or buffers).
:*   Display the lines/records of the entire file in reverse order.

Show the results here, on this page.
:*   Show the results here, on this page.