toCsvText

fun toCsvText(newLine: NewLine = NewLine.LF, escapeWhitespaces: Boolean = false): String

Converts the CSV data to a CSV-formatted string.

Return

the CSV-formatted string representation

Parameters

newLine

the line separator to use

escapeWhitespaces

whether to escape whitespaces in values