try this

filename = "C\:whatever.txt"
open filename for output as #1
print #1, richtextbox1.text
close


this is off the top of my head so there may be syntax errors.
let me know if it works.