CsvFile (gb.util)
This class allows to read and automatically decode a CSV file.
-
自从 3.15
Create a CSV File.
It is assumed that the first line of the CSV file are always the field names.
静态方法
Create
|
Create a CSV file for writing and return it as a CsvFile object.
|
Open
|
Open a CSV file for reading and return it as a CsvFile object.
|
Quote
|
Quote a string value for a CSV file.
|
属性
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
|
方法
Close
|
|
Read
|
Read a row from the CSV file.
|
Write
|
Write a new row of columns in the CSV file.
|