The last few times I had to use a .txt file as an input, I’ve run into difficult-to-troubleshoot parsing errors. What could be wrong? I check and re-check the text file, and I can’t find any mistakes!
If the text file came from a Windows machine, this may due to a difference in line-ending between DOS and Unix text files. You can check and change this file format in Vim.
Open your file in Vim and, in normal mode, type
:set ff? to see what the file format is. If it is DOS, then type
:set ff=unix to change it to Unix.