CsvFile (gb.util)
This class allows to read and automatically decode a CSV file.
Since 3.15
This class also allows to create new CSV files.
It is assumed that the first line of the CSV file are always the field names.
Static methods
Create
|
Create a new CSV file, and return a CsvFile object for manipulating it.
|
Open
|
Open a CSV file for reading and return it as a CsvFile object.
|
Quote
|
Quote a string value for a CSV file.
|
Properties
Charset
|
Return or set the CSV file charset.
|
Columns
|
Return the name of the columns
|
Eof
|
Return if the end of file has been reached.
|
Escape
|
Return or set the CSV file escape character.
|
Fields
|
Return the name of the columns
|
KeepNames
|
Return or set if field names are kept unchanged or not.
|
Line
|
Return the current line
|
NoDiacritics
|
Return or set if field names diacritics are kept or not.
|
Separator
|
Return or set the CSV file separator
|
Methods
Close
|
|
Read
|
Read a row from the CSV file.
|
Write
|
Write a new row of columns in the CSV file.
|