class for INI files UDBini.pas
uses UDBini
{------------------------------}
var demo : TDBini;
{------------------------------}
//ini file
test:=TDBINI.create('F:\RAD_ESTUDIO10.2\dbini\example.ini');
test.forEach( procedure(id:string ) begin
example.get(id,'field1');
ListView1.items.AddItem.Text:= id + test.get(id,'field1');;
end );
//for delete
test.delete('section_name');
//for add
test.add('unique_section','key','value');
test.add('unique_section','bytestream',StreamString.create('áéíóú'));
//for save in file
test.save
Warning! You are not allowed to view this text.