Check that file exists: Difference between revisions
m
→{{header|Ruby}}: File.exists is deprecated
Jazzedpineda (talk | contribs) (Omitted EasyLang) |
m (→{{header|Ruby}}: File.exists is deprecated) |
||
Line 2,632:
</syntaxhighlight>
=={{header|Ruby}}==
<code>File.
<syntaxhighlight lang="ruby">File.file?("input.txt")
Line 2,645:
["docs", "/docs"].each { |d|
printf "%s is a directory? %s\n", d, File.directory?(d) }</syntaxhighlight>
=={{header|Run BASIC}}==
<syntaxhighlight lang="runbasic">files #f,"input.txt"
|