Wow, love fest! May I join too? [Big Grin]

Anna: I would highly recommend to replace all hardcoded file handles with the FREEFILEHANDLE(). The script fragment below will loop until a free filehandle has been received, thus up to ten files can be opened at the same time.
code:
$handle=freefilehandle()
while not $handle
$handle=freefilehandle()
sleep 0.1
loop
$rc = Open($handle,"c:\templog.txt",2)
IF $rc = 0
? "file open"
$result = ReadLine($handle)
$x = SUBSTR("$result",20,15)
? "substr = " + $x
$ = Close($handle)
ELSE
? "File not open: Return code = " + $rc
? "Hit any key to continue"
Get $
EndIf

_________________________
There are two types of vessels, submarines and targets.