allows the line of the header to be specified rather than being hardcoded to 0
This feature is needed as some commercial software tools will output a preamble about the contents of the CSV before the actual lines of the CSV are output. In this case, the Header Line is several lines into the file, rather than being on the first line.
A new option was added to the csv-reader so that it remained possible to continue to skip over lines of data after the header line had been specified.
An alternative solution could be that the headerLine is auto-calculated to be the one line before the first line of data to be read. This approach was not chosen so that the skip lines feature could be used along-side the header line feature.
allows the line of the header to be specified rather than being hardcoded to 0
This feature is needed as some commercial software tools will output a preamble about the contents of the CSV before the actual lines of the CSV are output. In this case, the Header Line is several lines into the file, rather than being on the first line.
A new option was added to the csv-reader so that it remained possible to continue to skip over lines of data after the header line had been specified.
An alternative solution could be that the
headerLine
is auto-calculated to be the one line before the first line of data to be read. This approach was not chosen so that the skip lines feature could be used along-side the header line feature.