Einzelnen Beitrag anzeigen

bernhard_LA

Registriert seit: 8. Jun 2009
Ort: Bayern
1.123 Beiträge
 
Delphi 11 Alexandria
 
#9

AW: ini file , readstring UTF vs. ASCII

  Alt 12. Okt 2021, 12:10
nicht ganz, weil meiene naheliegende Lösung hier dann einen Abstract Fehler zurückliefert ....



Delphi-Quellcode:
  
var
  IniFile: TCustomIniFile;
  if FileExists(filename) then
  begin
    IniFile := TCustomIniFile.Create(filename);
    try
      Result := IniFile.ReadString(SectionStr, IdentStr, '<none>');
    finally
      IniFile.Free;
    end;
  end
  else
  begin
    Result := '<no file found>';
  end;
  Mit Zitat antworten Zitat