System.IniFiles.TMemIniFile.Rename

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Rename(const FileName: string; Reload: Boolean);

C++

void __fastcall Rename(const System::UnicodeString FileName, bool Reload);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TMemIniFile

Description

Associates the TMemIniFile with a different INI file.

Call Rename to change the INI file used by the TMemIniFile object to a file other than the one specified when the object was created.

FileName is name of the new INI file to use.

Reload determines whether data is immediately loaded into memory from the INI file specified in FileName. When Reload is true, the TMemIniFile object is repopulated with the data from the specified file. When Reload is false, the in-memory image is unchanged. This is useful, for example, when copying the data from one INI file to another file.

See Also