Losing the last column of data
you could add an empty field at the end of each line, and remove the last column of your table.

Otherwise check for all the line terminations (\r\n vs. \n), or the presence of \n in your contents...

It should work at the end, good luck !