RosettaCodeData/Task/Check-that-file-exists/Run-BASIC/check-that-file-exists.basic

6 lines
202 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
files #f,"input.txt"
if #f hasanswer() = 1 then print "File does not exist"
files #f,"docs"
if #f hasanswer() = 1 then print "File does not exist"
if #f isDir() = 0 then print "This is a directory"