TIniFile.Rename

procedure Rename(const AFileName: string; Reload: Boolean) AFileName: new file path Reload: if TRUE, TIniFile will be reloaded from a new location

Description
This procedure changes the file assigned to TIniFile Note that it doesn't create/save file to new location, so if you set Reload to TRUE, make sure the new file exists.

Example
The below example will spawn a medkit on the players position whenever he types "Medic!"