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
temp = open(filename,'r').read().split('\n')