The following code reads all lines of a text file, removes the break-line characters and converts it all into a list.
For this script, i’ll assume that: the text file exists and has some content … (but you should verify this before performing the operations).