Check that file exists: Difference between revisions

Content added Content deleted
(minor correction to Clojure version)
m (→‎{{header|PHP}}: s/ther/there/)
Line 436: Line 436:
if (file_exists('docs' )) echo 'docs is here with me';
if (file_exists('docs' )) echo 'docs is here with me';
if (file_exists('/input.txt')) echo 'input.txt is over there in the root dir';
if (file_exists('/input.txt')) echo 'input.txt is over there in the root dir';
if (file_exists('/docs' )) echo 'docs is over ther in the root dir';</lang>
if (file_exists('/docs' )) echo 'docs is over there in the root dir';</lang>


=={{header|Perl}}==
=={{header|Perl}}==