From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ReadString(const Section, Ident, Default: string): string; override;


virtual System::UnicodeString __fastcall ReadString(const System::UnicodeString Section, const System::UnicodeString Ident, const System::UnicodeString Default);


Type Visibility Source Unit Parent
function public
System.IniFiles TIniFile


Retrieves a string value from an INI file.

Call ReadString to read a string value from an INI file. Section identifies the section in the file that contains the desired key. Ident is the name of the key from which to retrieve the value. Default is the string value to return if the:

  • Section does not exist.
  • Key does not exist.
  • Data value for the key is not assigned.

This version of ReadString is only available if the application is compiled for Windows.

See Also

Code Examples