Just a little remark about the last code.

If you use the file handle "1" in the function, you can have side effect if the calling code is using too the file handle "1".

In the function, you should use something like that :
Code:
$handle = FreeFileHandle()
$ = Open($handle,$Path+$File,5)
$ = WriteLine($handle,"["+$LIG+"]"+@crlf)
$ = WriteLine($handle,"ID="+$WUS+@crlf)
$ = WriteLine($handle,"IP="+$WIP+@crlf)
$ = WriteLine($handle,"Opened="+@time+@crlf)
$ = WriteLine($handle,""+@crlf)
$ = Close($handle)



this is safier.
_________________________
Christophe