CsvFile.Create (gb.util)
Static Function Create ( Path As String [ , Separator As String, Escape As String, Charset As String ] ) As CsvFile
Create a CSV file for writing and return it as a CsvFile object.
-
Path is the path of the file.
-
Separator is the column separator,
,
by default.
-
Escape is the escape character,
"
by default.
-
Charset is the file charset. If not specified, it will be guessed.
If another file with the same name already exists, it is erased.
Field names are automatically formatted: trailing and double white spaces are removed, and characters are converted to lower case.
If you want to keep the original field names, set the
KeepNames property just after the creation of the CsvFile object.