ThibH
12/4/2017 - 4:29 PM

Read lines in a file without newline

Read a file and output a list for each line without having the '\n' at the end.

open(filepath, 'r').read().splitlines()