scanToArray

fun scanToArray(pathToFile: Path): DoubleArray

Assumes that the file holds doubles with each value on a different line 1.0 4.0 2.0 etc

Return

the data as an array

Parameters

pathToFile

the path to a file holding the data