Set the CSV source data.
Source position: csvreadwrite.pp line 143
public procedure TCSVParser.SetSource( |
AStream: TStream |
); overload; |
const AString: string |
); overload; |
AStream |
|
The stream to read CSV data from. |
AString |
|
A string to read CSV data from. |
SetSource sets the source of the CSV data to aStream (a stream) or aString (a string). It calls ResetParser to reset the parser state. The stream is by default not owned by the parser, i.e. you must free it after it has been used. If TCSVParser.FreeStream is True, then the stream will be freed by the parser class when it is destroyed, or when a new stream is set.
|
Does the parser free the stream when done ? |
|
|
Reset the parser to its initial state. |