TdxCustomMemData.SaveToBinaryFile(string) Method
In This Article
Saves data to a binary file.
#Declaration
Delphi
procedure SaveToBinaryFile(const AFileName: string); dynamic;
#Parameters
Name | Type |
---|---|
AFile |
string |
#Remarks
Call this method if you want to save data to a binary file specified by the FileName parameter.
// Saves data to a binary file
procedure TForm1.Button1Click(Sender: TObject);
begin
dxMemData1.SaveToBinaryFile(ExtractFileDir(Application.ExeName) + 'mdata.bin');
end;
After this, you can load data from this file via the LoadFromBinaryFile method call.
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