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

(Added Go)
Line 214:
working...
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:
--- 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...
</pre>
2,468

edits