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

Content added Content deleted
(Added Wren)
m (added a comment (in the task's preamble) about superfluous blanks.)
Line 16: Line 16:




You can (or may) assume there are no trailing blanks,   and that line four has one blank.
You can (or may) assume there are no superfluous trailing blanks,   and that line four has one blank.


Also, don't include the rightmost informative comments   (◄■■■■■■),   as they are not meant to be part of the file.
Also, don't include the rightmost informative comments   (◄■■■■■■),   as they are not meant to be part of the file.