comp • gb.util • csvfile

CsvFile (gb.util)

This class allows to read and automatically decode a CSV file.

  • Since 3.15
    Create a CSV File.

It is assumed that the first line of the CSV file are always the field names.

This class is
Open a CSV file for reading.
creatable
.

Static methods

Create a new CSV file, and return a CsvFile object for manipulating it.
Create  
Open a CSV file for reading, and return a CsvFile object for manipulating it.
Open  
Quote a string value for a CSV file.
Quote  

Properties

Methods
Return or set the CSV file charset.
Charset  
Return the name of the columns
Columns  
Return if the end of file has been reached.
Eof  
Return or set the CSV file escape character.
Escape  
Return or set the list of fields as a string array.
Fields  
Return or set if field names are kept unchanged or not.
KeepNames  
Return the number of the last line that has been read or written.
Line  
Return or set if field names diacritics are kept or not.
NoDiacritics  
Return or set the CSV file separator
Separator  
Close the CSV file.
Close  
Read a new line, and return it as a collection of field values indexed by their field names.
Read  
Write a new line into the CSV file.
Write