Forum: Sonstige Fragen zu Delphi
Delphi
by johny,
15. Sep 2003
So, ich habe den Quelltext noch etwas erweitert. Jetzt wird das Datum, die Systemzeit und der Inhalt der Variable protokolliert:
procedure TForm1.Button1Click(Sender: TObject);
var
LogFile: TextFile;
sVariable : string;
sDate : string;
sTime : string;
begin
sDate := DateToStr(Now);
Forum: Sonstige Fragen zu Delphi
Delphi
by johny,
15. Sep 2003
Das hier sollte funktionieren.
procedure TForm1.Button1Click(Sender: TObject);
var
LogFile: TextFile;
sVariable : string;
begin
sVariable := 'Test';
AssignFile(LogFile, 'Test.txt');
if FileExists('Test.txt') then
Append(LogFile)