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 stupid but still: readlines() also writes newline character to each element, something I do not wish to happen.
How can I avoid it?