uh, little weird solution but it should work.

if you use wkix32 (console-less kix) you should silence the functions:
Open(1, "c:\test2.txt",2)

should be:
$dummy=Open(1, "c:\test2.txt",2)

otherwise these will open console and show "0" or something there.
not good for GUI script [Wink]
_________________________
!

download KiXnet