TCsvParser
Csv Parser
The parser expects at least 1 header row. If a file does not have a header row, one can be provided by setting TCsvOptions.insertHeaderRow with an appropriate value.
Methods
Method NextRow:ECsvStatus()
Fetches the next row.
Returns
Returns ECsvStatus.row when a row is retrieved.
Method GetRow:TCsvRow()
Returns the current row.
The cell values are only valid until the next call to NextRow.
Method Free()
Frees the parser and any associated data.
Functions
Function Parse:TCsvParser(path:String, opts:TCsvOptions)
Creates a new TCsvParser instance, using the given path.
Function Parse:TCsvParser(stream:TStream, options:TCsvOptions = Null)
Creates a new TCsvParser instance, using the provided TStream.