In Python, calling
temp = open(filename,\'r\').readlines()
results in a list in which each element is a line in the file. It\'s a little st
I think this is the best option.
temp = [line.strip() for line in file.readlines()]