Saves a recordset to a file.procedure SaveToFile(const FileName: String = ''; Format: TPersistFormat = pfADTG);DescriptionCall SaveToFile to save the current recordset to a file. If the destination file already exists, it is overwritten.FileName is a string containing the name of the destination file. This file remains open from the first call to SaveToFile until the dataset is closed. This file can be read by other applications while it is open, but they cannot write to the file.Format specifies the file format for the saved recordset. By default, Format is pfADTG (Advanced Data Tablegram format).
[Id1]
Field1 = xxxx
Field2 = xxxx
...
[Id2]
Id1,Id2用表的主键的值代替,Field1,Field2用字段名代替,xxxx用字段值代替
访问时读INI文件
TIniFile * ini = new TIniFile("tabel.ini");
AnsiString s1,s2;
s1 = ini->ReadString("Id1","Field1","");
s2 = ini->ReadString("Id1","Feild2","");
delete ini;