I you can open a file for output in VBScript, you can do this.
Open the file in a richtextbox control named RTtemp.
from there do this
Open App.Path & "/temp.txt" for output as #1
print #1,RTtemp.Text
Close #1
**********************************
May the Code Be With You...
----------
x50-8 (X Fifty Eigt)