[fpc-pascal] TEventLog.FileName : Hot to do an append to existing log file

Michael Van Canneyt michael at freepascal.org
Wed Sep 22 13:47:29 CEST 2010



On Wed, 22 Sep 2010, phoebus phoebus wrote:

> Hi,
>
> I'm not understand how to use unit Teventlog to no create each time a new 
> file but to append to an existing log file.
>
> I want to do something like:
>
>   assign(f,filename);
>   if FileExists(filename) then Append(f)
>                           else Rewrite(f);
>   Writeln(f,FormatDateTime('dd/mm/yyyy hh:nn:ss  ',Now),msg);
>   CloseFile(f);


This is currently not possible. 
Please file a feature request in the bugtracker.

Michael.


More information about the fpc-pascal mailing list