python lines de lecture sans n
temp = file.read().splitlines()
Open Opossum
temp = file.read().splitlines()
# converts read file into a list without newlines
temp = file.read().splitlines()
#python readlines without \n
alist = t.read().splitlines()
with open('filename.txt') as f:
alist = [line.rstrip() for line in f]