temp = file.read().splitlines()
#python readlines without alist = t.read().splitlines()
with open('filename.txt') as f: alist = [line.rstrip() for line in f]