writeArrayToCSVFile

fun writeArrayToCSVFile(array: Array<DoubleArray>, header: MutableList<String> = mutableListOf(), pathToFile: Path = KSL.outDir.resolve("arrayData.csv"))(source)

IOException is squelched with a warning to the logger if there was a problem writing to the file.

Parameters

header

the names of the columns as strings

array

the array to write

pathToFile

the path to the file