readToColumns

Reads data from a csv file that has 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. The List names will hold ("x", "y"). If names has strings it will be cleared. The returned array will hold data0 = {1.1, 4.3} data1 = {2.0, 6.4} etc.

Return

the filled array of arrays

Parameters

names

the list to fill with header names

pathToFile

the path to the file