readRows

fun readRows(pathToFile: Path, skipLines: Int = 0): List<CSVRecord>

Reads all rows from a csv file that may have the first row as a header of column labels and each subsequent row as the data for each column, e.g. "x", "y" 1.1, 2.0 4.3, 6.4 etc. This method squelches any IOExceptions. Writes warning to log. If there was a problem an empty list is returned.

Return

the filled list

Parameters

skipLines

the number of lines to skip from the top of the file

pathToFile

the path to the file