Make sure your data file uses a consistent character to represent newlines. If the file uses \r\n for newlines, then it should not also use \n for newlines, and vice versa. If your file contains both UNIX-style \n newlines and Windows-style \r\n newlines, then you must clean the file before you try to load it. The UNIX command, dos2unix, can be useful for doing this.