Skip to content

TIniCollectionItem.SaveToFile

Save item to a file.

Declaration

Source position: inicol.pp line 39

public 
procedure TIniCollectionItem.SaveToFile(const FileName: string; 
                                       const Section: string);

Description

SaveToFile creates an instance of TIniFile with the indicated FileName calls SaveToIni to save the item to the indicated file in .ini format under the section Section

Errors

An exception can occur if the file is not writeable.

See also

Name Description
SaveToIni Method called when the item must be saved.
LoadFromFile Load item from a file.