Working with ini Files and the System Registry
Go Up to Working with Files
Using ini files has the advantage they are easy to read and edit. For information on these classes, see Using TIniFile and TMemIniFile for more information.
Many Windows applications replace the use of ini files with the system Registry. The Windows system Registry is a hierarchical database that acts as a centralized storage space for configuration information. The RTL includes classes for working with the system Registry. Two of these classes, TRegistryIniFile and TRegistry, are discussed here because of their similarity to the classes for working with ini files.
TRegistryIniFile shares a common ancestor (TCustomIniFile) with the classes that work with ini files. TRegistryIniFile is discussed in Using TRegistryIniFile.
For Windows applications, you can use the TRegistry class. The properties and methods of TRegistry have names that correspond more directly to the way the system Registry is organized, because it does not need to be compatible with the classes for ini files. TRegistry is discussed in Using TRegistry.