.. mal in die Hilfe schauen
Pfad := MyIni.ReadString('default','datadir','');
[ungetestet]
Nachtrag:
Zitat von
DelphiHilfe:
Retrieves a string value from an INI file.
function ReadString(const Section, Ident, Default: String): String; override;
Description
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.
Grüße
Klaus