Show: Delphi C++
Display Preferences

System.IniFiles.TIniFile

From RAD Studio API Documentation
Jump to: navigation, search

System.IniFiles.TCustomIniFileSystem.TObjectTIniFile

Delphi

TIniFile = class(TCustomIniFile)

C++

class PASCALIMPLEMENTATION TIniFile : public TCustomIniFile

Properties

Type Visibility Source Unit Parent
class public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles System.IniFiles

Description

TIniFile stores and retrieves application-specific information and settings from INI files. ´ TIniFile enables handling the storage and retrieval of application-specific information and settings in a standard INI file. An INI file stores information in logical groupings, called "sections". Within each section, actual data values are stored in named keys. Keys take the form:

<keyname> = <value>

A FileName is passed to the TIniFile constructor and identifies the INI file that the object accesses.

Platform Support

  • Windows
On Windows platform, TIniFile is inherited from TCustomIniFile and uses the Windows API.
Note: If you want to minimize the disk access, use TMemIniFile. TMemIniFile is a related object that works the same way as TIniFile, but the buffer writes in memory to minimize disk access.
  • Non-Windows Platforms
On non-Windows platforms, TIniFile is a subclass of TMemIniFile that has the AutoSave property always set to True. TIniFile writes data into the INI file either explicitly by calling UpdateFile or implicitly when the destructor is called. Last one happens when AutoSave and Modified are set to True.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance