exportToCSV

fun exportToCSV(out: PrintWriter, header: Boolean = true)

Writes the data in the file to a CSV file

Parameters

out

the print write to write the data to

header

true means the file will contain a header of column names