Load a CSV file into the document.
Source position: csvdocument.pp line 93
public procedure TCSVDocument.LoadFromFile( |
const AFilename: string |
); overload; |
const AFilename: string; |
ABufferSize: Integer |
); overload; |
AFilename |
|
Filename to read CSV data from. |
AFilename |
|
Filename to read CSV data from. |
ABufferSize |
|
Buffer size to use when reading CSV data from file. |
LoadFromFile creates a file stream using aFileName and calls LoadFromStream to read the contents of the file.
The file is read using an internal buffer for efficiency. The size of the buffer can be specified in bytes using ABufferSize. If the size is not specified, a default buffer size is used.
If the file does not exist, an exception will be raised.
|
Load CSV data from a stream. |
|
|
Save the CSV data to stream. |
|
|
Save to file on disk. |