3 ms·You can even just write lines = sorted(open(sys.argv[1])) since Python files act as iterators over lines.by dbaupp 13y agoYou can even just write lines = sorted(open(sys.argv[1])) since Python files act as iterators over lines.