Whether this is fast enough, or not, I don't know:
filename = "data_file.txt" f = open(filename, 'r') forward = [line.rstrip('\n') for line in f.readlines()] backward = [line.rstrip('\n') for line in reversed(forward)] f.close() print forward, "\n\n", "********************\n\n", backward, "\n" -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list