open "output.txt" for writing as #1 print #1 "This is a string" close #1