Thema: Delphi Savetofile Problem

Einzelnen Beitrag anzeigen

DMonkey

Registriert seit: 2. Sep 2009
53 Beiträge
 
#9

Re: Savetofile Problem

  Alt 19. Mai 2010, 05:54
gadlist is meine TStringlist und
pfad:= ExtractFilePath(Application.Exename);(dateipfad)
Speichern:
Delphi-Quellcode:
try
   if not DirectoryExists(pfad+'System\Config\gads.cf') then
   ForceDirectories(pfad+'System\Config');
   gadlist.lines.SaveToFile(pfad+'System\Config\gads.cf');
 except
 end;
Laden:
Delphi-Quellcode:
try
   gadlist.lines.loadfromFile(pfad+'System\Config\gads.cf');
 except
end;
  Mit Zitat antworten Zitat