CsvFile Type
Represents a CSV file. The lines are read on demand from reader
.
Columns are delimited by one of the chars passed by separators
(defaults to just ,
), and
to escape the separator chars, the quote
character will be used (defaults to "
).
If hasHeaders
is true (the default), the first line read by reader
will not be considered part of data.
If ignoreErrors
is true (the default is false), rows with a different number of columns from the header row
(or the first row if headers are not present) will be ignored.
The first skipRows
lines will be skipped.
Instance members
Instance member | Description |
|
|
|
|
|
|
Full Usage:
this.GetColumnIndex
Parameters:
string
Returns: int
|
|
Full Usage:
this.Headers
Returns: string[] option
|
|
Full Usage:
this.NumberOfColumns
Returns: int
|
|
Full Usage:
this.Quote
Returns: char
|
|
Full Usage:
this.Rows
Returns: 'RowType seq
|
|
Full Usage:
this.Save
Parameters:
string
?separator : char
?quote : char
|
|
|
|
|
|
Full Usage:
this.SaveToString
Parameters:
char
?quote : char
Returns: string
|
|
Full Usage:
this.Separators
Returns: string
|
|
|
|
|
|
|
|
Full Usage:
this.TryGetColumnIndex
Parameters:
string
Returns: int option
|
Static members
Static member | Description |
Full Usage:
CsvFile.Load(reader, ?separators, ?quote, ?hasHeaders, ?ignoreErrors, ?skipRows)
Parameters:
TextReader
?separators : string
?quote : char
?hasHeaders : bool
?ignoreErrors : bool
?skipRows : int
Returns: CsvFile
|
|
Full Usage:
CsvFile.Parse(text, ?separators, ?quote, ?hasHeaders, ?ignoreErrors, ?skipRows)
Parameters:
string
?separators : string
?quote : char
?hasHeaders : bool
?ignoreErrors : bool
?skipRows : int
Returns: CsvFile
|
|