RosettaCodeData/Task/Check-that-file-exists/BASIC256/check-that-file-exists.basic

16 lines
330 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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