>> Did you use Python by chance to reverse those lines of text?
>Nah... Just writing like an antipode... ;-)
In anticipation of the growing need for antipodeans to write lines of text from bottom to top, I have provided the following python3 program to convert existing text files to this format...
#!/usr/bin/env python3
# bot2top.py
import sys
if int(sys.version[0]) < 3:
sys.exit("Please use python3")
while True:
filename = input("Enter filename with lines of text to be reversed: ")
try:
f = open(filename, "r")
break
except:
print("File not found. Please re-enter filename...")
continue
for line in reversed(f.readlines()):
print(line[:-1])
f.close()
...and for those of you who have difficulty reading python programs written from top to bottom, then here it is again, but written from bottom to top...
f.close()
print(line[:-1])
for line in reversed(f.readlines()):
continue
print("File not found. Please re-enter filename...")
except:
break
f = open(filename, "r")
try:
filename = input("Enter filename with lines of text to be reversed: ")
while True:
sys.exit("Please use python3")
if int(sys.version[0]) < 3:
import sys
# bot2top.py
#!/usr/bin/env python3
cheers,
Ian.