Skip to content

TCSVDocument.SaveToFile

Save to file on disk.

Declaration

Source position: csvdocument.pp line 99

public 
procedure TCSVDocument.SaveToFile(const AFilename: string);

Description

SaveToFile creates a file stream from aFileName and calls SaveToStream to actually write the CSV data to the file.

Errors

If the file cannot be created or cannot be written to, an exception will be raised.

See also

Name Description
SaveToStream Save the CSV data to stream.
LoadFromStream Load CSV data from a stream.
LoadFromFile Load a CSV file into the document.