Autor Beitrag
DelphiNoob
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 152

Win 2003 Server
D7 Ent
BeitragVerfasst: Do 29.04.04 17:26 
Hi,

ich habe ein Problem mit meiner Log Funktion:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
function do_log(msg: string): string;
var
f: textfile;
begin

AssignFile(f, 'G:\crash_log.log');

if not FileExists('G:\crash_log.log') then
begin
  Rewrite(f);
end
else
begin
  Reset(f);
  ReadLn(f);
  Seek(f, FileSize(f));
end;

WriteLn(f, msg);
CloseFile(f);
end;


Beim kompilieren kommt bei Seek() ein Fehler. Ich versteh nur nicht wieso. Ich will den Zeiger ans Ende der Datei setzen. Wahrscheinlich wieder irgendwas verwechselt oder so, ich kommt nur nicht drauf.

Bestimmt könnt ihr schnell und effizient helfen.

Mfg
DelphiNoob
DelphiNoob Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 152

Win 2003 Server
D7 Ent
BeitragVerfasst: Do 29.04.04 17:36 
Okay... löscht den Thread... ich sag nur Append().