public CSVReader( path as Path, delimiter as Char = ',', quoteChar as Char = '"', escapeChar as Char = '\u0000', doubleQuote as Boolean = true, skipInitialSpace as Boolean = false, strict as Boolean = true, encoding as String = "auto" )
Opens a CSV path without parsing its records. The generator owns the file.
| Parameter | Description |
|---|---|
path | Regular file to read. |
delimiter | Field delimiter. Default is comma. |
quoteChar | Quote character; U+0000 disables quoting. |
escapeChar | Escape character; U+0000 disables escaping. |
doubleQuote | Decode doubled quotes inside quoted fields. |
skipInitialSpace | Ignore spaces before a field and after a closing quote. |
strict | Reject malformed quoting when the affected record is read. |
encoding | Charset name; auto selects the Unicode BOM or UTF-8. |
try reader = CSVReader(Path("contacts.csv")): print(reader.next())