writeToFile

fun Array<DoubleArray>.writeToFile(pathToFile: Path, df: DecimalFormat? = null)(source)

Writes the array of double arrays to a file, each array on a new line, and each element in the array separated by a comma.

Parameters

df

a format to apply to the values of the array when writing the strings

pathToFile

the path to the file, must not be null


fun Array<DoubleArray>.writeToFile(fileName: String, df: DecimalFormat? = null)(source)

Writes the array to a file. Each element in the array is on a new line.

Parameters

df

a format to apply to the values of the array when writing the strings

fileName

the name of the file, must not be null, file will appear in KSL.getInstance().getOutDir()


fun DoubleArray.writeToFile(pathToFile: Path, df: DecimalFormat? = null)(source)

Writes the array of doubles to a file, each element on a new line.

Parameters

df

a format to apply to the values of the array when writing the strings

pathToFile

the path to the file, must not be null.


fun DoubleArray.writeToFile(fileName: String, df: DecimalFormat? = null)(source)

Writes the array of doubles to a file, each element on a new line.

Parameters

df

a format to apply to the values of the array when writing the strings

fileName

the name of the file, must not be null.


fun Array<IntArray>.writeToFile(pathToFile: Path)(source)

Writes the array of int arrays to a file, each array on a new line, and each element in the array separated by a comma.

Parameters

pathToFile

the path to the file, must not be null


Writes the array of int arrays to a file, each array on a new line, and each element in the array separated by a comma.

Parameters

fileName

the name of the file, must not be null.


fun IntArray.writeToFile(pathToFile: Path)(source)

Writes the array of ints to a file, each element on a new line.

Parameters

pathToFile

the path to the file, must not be null


Writes the array of ints to a file, each element on a new line.

Parameters

fileName

the name of the file, must not be null.