Check that file exists: Difference between revisions
Content added Content deleted
(Check that file exists en BASIC256) |
No edit summary |
||
Line 285: | Line 285: | ||
test directory exists( "docs" ); |
test directory exists( "docs" ); |
||
test directory exists( "\docs" )</lang> |
test directory exists( "\docs" )</lang> |
||
=={{header|Amazing Hopper}}== |
|||
Version: hopper-FLOW!: |
|||
<lang Amazing Hopper> |
|||
#include <flow.h> |
|||
DEF-MAIN(argv, argc) |
|||
WHEN( IS-FILE?("hopper") ){ |
|||
MEM("File \"hopper\" exist!\n") |
|||
} |
|||
WHEN( IS-DIR?("fl") ){ |
|||
MEM("Directory \"fl\" exist!\n") |
|||
} |
|||
IF( IS-DIR?("noExisDir"), "Directory \"noExistDir\" exist!\n", \ |
|||
"Directory \"noExistDir\" NOT exist!\n" ) |
|||
PRNL |
|||
END |
|||
</lang> |
|||
{{out}} |
|||
<pre> |
|||
$ hopper existFile.flw |
|||
File "hopper" exist! |
|||
Directory "fl" exist! |
|||
Directory "noExistDir" NOT exist! |
|||
$ |
|||
</pre> |
|||
=={{header|APL}}== |
=={{header|APL}}== |