Check that file exists: Difference between revisions

Added REBOL example.
m (Fixed lang tags.)
(Added REBOL example.)
Line 511:
'docs' isdir if 'docs exists and is a directory' print
'/docs' isdir if '/docs exists and is a directory' print</lang>
 
=={{header|REBOL}}==
<lang REBOL>exists? %input.txt
exists? %docs/
 
exists? %/input.txt
exists? %/docs/</lang>
 
=={{header|Ruby}}==
Anonymous user