summaryrefslogtreecommitdiff
path: root/protokollunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2015-08-04 13:01:32 +0200
committerErich Eckner <git@eckner.net>2015-08-04 13:01:32 +0200
commit99471aef938c37216d67122c48fdaebc2902af9d (patch)
tree82efc62f3f18aac206226178358b3252181d3b6b /protokollunit.pas
parent00eaedf3d3597cb30742a484cf62dbf62128bf8b (diff)
downloadunits-99471aef938c37216d67122c48fdaebc2902af9d.tar.xz
tProtokollant loescht jetzt Datei bevor er sie schreibt
Diffstat (limited to 'protokollunit.pas')
-rw-r--r--protokollunit.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/protokollunit.pas b/protokollunit.pas
index 8b1cf53..cb8961d 100644
--- a/protokollunit.pas
+++ b/protokollunit.pas
@@ -42,6 +42,8 @@ begin
getmem(sDat,sizeof(tProtokolldatei));
sDat^.einrueckung:=10;
assignfile(sDat^.datei,dateiname);
+ if fileexists(dateiname) then
+ deleteFile(dateiname);
rewrite(sDat^.datei);
bes:='';
setlength(kinder,0);