Delphi-Quellcode:
var
sFilename : String;
begin
sFilename := Format('%s\some.ini',[ExtractFilePath(Application.ExeName)]);
if FileExists(sFilename) then myIni := TIniFile.Create(sFilename);
end;
Eventuell funktioniert es auch so:
Delphi-Quellcode:
var
sFilename : String;
begin
sFilename := '.\some.ini';
if FileExists(sFilename) then myIni := TIniFile.Create(sFilename);
end;