I've been given a CSV file that has a mixture of line ending types, some are LF and some are CR.
The first line is blank with a LF, followed by a header line with a CR then all the data records which are terminated with LF's. The CSV reader is thinking the terminator is LF so thinks the header line is both lines 2 and 3 which is messing it up.
Other than reading the file in as a whole and changing the CR to LF, saving it and reading it in again does anyone know how to read this in?