TdxCustomMemData.LoadFromBinaryFile(string) Method
In This Article
Loads data from a binary file.
#Declaration
Delphi
procedure LoadFromBinaryFile(const AFileName: string); dynamic;
#Parameters
Name | Type |
---|---|
AFile |
string |
#Remarks
Use this method to load data from a binary file specified by the FileName parameter.
Note
A file specified by the File
#Example
// Load data from a binary file
procedure TForm1.Button1Click (Sender: TObject);
begin
with dxMemData1 do
begin DisableControls;
// Define comma as column separator
LoadFromBinaryFile(ExtractFileDir(Application.ExeName) + 'mdata.bin');
EnableControls;
end;
end;
At design time, you can use the functionality provided by the ExpressMemData Persistent Editor to save/load data from a binary file (via the Save… and Load… buttons).
See Also