RosettaCodeData/Task/Check-that-file-exists/Yabasic/check-that-file-exists.basic
2023-07-01 13:44:08 -04:00

6 lines
216 B
Text

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"