class CSVPrinter: Flushable, Any

Writes CSV files.

Constructors

<init>

constructor(filePath: Path, header: List<String>)

Writes CSV files.

Parameters

Name Description
filePath: Path

path to the file to be written

header: List<String>

header of the csv file

Methods

printRecord

fun printRecord(vararg values: Any)

Prints the given values as a single record.

Parameters

Name Description
vararg values: Any

values to write

ReturnValue

Name Description
Unit

flush

fun flush()

Flushes the stream.

ReturnValue

Name Description
Unit