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

Content added Content deleted
(Added Go)
Line 214: Line 214:
working...
working...
Input file lines:
Input file lines:
"Diplomacy is the art of
Ring Programming Language #1
saying 'Nice Doggy'
Ring Programming Language #2
until you can find a rock."
Ring Programming Language #3


--- Will Rodgers
Reversed file lines:
Reversed file lines:
--- Will Rodgers
Ring Programming Language #3

Ring Programming Language #2
until you can find a rock."
Ring Programming Language #1
saying 'Nice Doggy'
"Diplomacy is the art of
done...
done...
</pre>
</pre>