I am reading one line at a time from a file, but at the end of each line it adds a '\n'.
Example:
The file has: 094 234 hii
but my input is: 094 234 hii\n
I want to read line by line but I don't need to keep the newlines...
My goal is to read a list from every line: I need ['094','234','hii'], not ['094','234','hii\n'].
Any advice?