In Python, you can read a file and load its lines into a list by using
f = open(\'file.txt\',\'r\') lines = f.readlines()
Each individual l
f = open('file.txt','rU')
This opens the file with Python's universal newline support and \r is treated as an end-of-line.
\r