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

15 lines
330 B
Text

subroutine opener (filename$)
if exists(filename$) then
print filename$; " exists"
else
print filename$; " does not exists"
end if
end subroutine
call opener ("input.txt")
call opener ("\input.txt")
call opener ("docs\nul")
call opener ("\docs\nul")
call opener ("empty.kbs")
call opener ("`Abdu'l-Bahá.txt"))
end