Das Problem was ich mit der TMemIniFile habe ist:
Zitat von
Delphi Hilfe:
...
Die INI-Datei wird einmal bei der Erzeugung des Objekts gelesen. Die Daten der INI-Datei werden in hierarchischen String-Listen gespeichert.
...
Die TMemIniFile-Klasse sieht aber so aus: Wo sind da die hierarchischen String-Listen???
Delphi-Quellcode:
TMemIniFile = class(TCustomIniFile)
private
FSections: TStringList;
FEncoding: TEncoding;
function AddSection(const Section: string): TStrings;
function GetCaseSensitive: Boolean;
procedure LoadValues;
procedure SetCaseSensitive(Value: Boolean);
public
constructor Create(const FileName: string); overload;
constructor Create(const FileName: string; Encoding: TEncoding); overload;
destructor Destroy; override;
procedure Clear;
procedure DeleteKey(const Section, Ident: String); override;
procedure EraseSection(const Section: string); override;
procedure GetStrings(List: TStrings);
procedure ReadSection(const Section: string; Strings: TStrings); override;
procedure ReadSections(Strings: TStrings); override;
procedure ReadSectionValues(const Section: string; Strings: TStrings); override;
function ReadString(const Section, Ident, Default: string): string; override;
procedure Rename(const FileName: string; Reload: Boolean);
procedure SetStrings(List: TStrings);
procedure UpdateFile; override;
procedure WriteString(const Section, Ident, Value: String); override;
property CaseSensitive: Boolean read GetCaseSensitive write SetCaseSensitive;
property Encoding: TEncoding read FEncoding write FEncoding;
end;