Skip to content

TMemIniFile.Rename

Rename the ini file.

Declaration

Source position: inifiles.pp line 276

public 
procedure TMemIniFile.Rename(const AFileName: string; Reload: Boolean);

Description

Rename will rename the ini file with the new name AFileName. If Reload is True then the in-memory contents will be cleared and replaced with the contents found in AFileName, if it exists. If Reload is False, the next call to UpdateFile will replace the contents of AFileName with the in-memory data.

See also

Name Description
UpdateFile Update the file on disk.