OPEN #1: NAME "output.txt", CREATE NEWOLD PRINT #1: "This string is to be written to the file" CLOSE #1 END