You could also try REDIRECTOUTPUT or WRITEPROFILESTRING if you can't get the WRITELINE to work.
_________________________
There are two types of vessels, submarines and targets.