System.IniFiles.TMemIniFile.ReadString
Delphi
function ReadString(const Section, Ident, Default: string): string; override;
C++
virtual System::UnicodeString __fastcall ReadString(const System::UnicodeString Section, const System::UnicodeString Ident, const System::UnicodeString Default);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IniFiles.pas System.IniFiles.hpp |
System.IniFiles | TMemIniFile |
Description
Retrieves a string value from the 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.
The ReadString method inherited from TCustomIniFile is modified to operate on the in-memory copy of the INI file data. The read methods for all other data types use ReadString internally and then translate to the appropriate data type.
See Also
Code Examples