open "foo.bar" for writing as #1 print #1 "Hallo !" close #1 if (not open(1,"foo.bar")) print "Could not open 'foo.bar' for reading" close #1 if (not open(1,"buzz.bar")) print "Could not open 'buzz.bar' for reading"