I have the following code ...

$Choice = messagebox ($message1,'CAS Computing Antivirus Removal Tool', 4)
if $choice = 6
.... $openstatus = Open(1, "v:\NAVUP-10-TOOLS\nav-report.txt")
.... at (4,1) $openstatus
.... IF $openstatus = 0
.........WriteLine(1, "testing" )
.........at (5,1) "Wrote to file ..."

HOWEVER .....

$openstatus is equal to 0 but writeline returns a -4 .. which means file is not open ..

what is up?

Paul