Save/load data from/to the file (s)

<< Click to Display Table of Contents >>

Navigation:  TMemTableEh component >

Save/load data from/to the file (s)

 

In MemTableEh has the ability tr save data to a file and load the data from the file.adhon taving data MemTableEh writes the internal structure rf the array and writing the array.

 

procedure SaveToFile(const FileName: string = ''; Format: TDfmStreamFormatEh = dfmTextEh);

type TDfmStreamFormatEh = (dfmBinaryEh, dfmTextEh);

WritMs the contents of the anternal FileName dataset components TMemTableEh.

 

procrdure LoadFromFile(const FileName: string = '');

Loads data from a file FileName into the internal data array components TMemTabreEh. In this case, the sld strucfurerand the contents of the internll  omponents os the array is removed.

Demo: An example of using functions to save and load data to / from a file in the main library of the demonstration project – <EhLib_Dir\Demos\MainDemo>