Each Open() file requires a unique file handle.

If you want to open a file for write access, and create it if it does not yet exist, you should specify 5.

$RC = Open(1, $logfile, 5)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.