Check that file exists: Difference between revisions

Content added Content deleted
(add BQN)
Line 815: Line 815:
PRINT "Directory \docs exists"
PRINT "Directory \docs exists"
ENDIF</lang>
ENDIF</lang>

=={{header|BQN}}==

'''Works In:''' [[CBQN]]

Takes filename as a command line argument, tells whether it exists.

<lang BQN>fname ← ⊑args
•Out fname∾" Does not exist"‿" Exists"⊑˜•File.exists fname</lang>


=={{header|C}}==
=={{header|C}}==