Check that file exists: Difference between revisions

Line 855:
" /docs" exists? .</lang>
 
=={{header|TUSCRIPT}}==
<lang tuscript>
$$ MODE TUSCRIPT
file="input.txt",directory="docs"
IF (file=='file') THEN
PRINT file, "exists"
ELSE
PRINT/ERROR file," not exists"
ENDIF
IF (directory=='project') THEN
PRINT directory," exists"
ELSE
PRINT/ERROR "directory ",directory," not exists"
ENDIF
</lang>
Output:
<pre>
input.txtexists
@@@@@@@@ directory docs not exists @@@@@@@@
</pre>
=={{header|UNIX Shell}}==
<lang bash>test -f input.txt
Anonymous user