Skip to content

TMemDataset.LoadFromFile

Loads the content for the dataset from the specified file name.

Declaration

Source position: memds.pp line 156

public 
procedure TMemDataset.LoadFromFile(const AFileName: string);

Description

LoadFromFile is used to load the content for the dataset from the specified file name. LoadFromFile creates a TFileStream for the file name specified in AFileName. The file stream is passed to LoadFromStream to load the contents of the file into the in-memory dataset. The file stream is freed prior to exiting from the method.

Use SaveToFile to save the contents of an in-memory dataset to a file on the local file system.

See also

Name Description
TMemDataset.LoadFromStream Loads the content for the dataset from the specified stream.
TMemDataset.SaveToFile Saves field definitions and optional record data to the specified file name.