If the problem is what Farling described, delete any blank lines in the CSV file and (if present) the line ending at the end of the file and try it again.
Farling, it might be better if you checked for blank (post-trimming) lines in your file reading code and errored or ignored them then (or treated them as the end of the file). That'd separate a blank line from a line with empty data ("", "", "", ...) if you care.
Last edited by Parody; October 9th, 2017 at 06:13 PM.
|