Jump to content

Check that file exists: Difference between revisions

added factor example
(Add Seed7 example)
(added factor example)
Line 288:
require(file.isDirectory(), fn { `$file is not a directory!` })
}</lang>
 
=={{header|Factor}}==
<lang factor>: print-exists? ( path -- )
[ write ": " write ] [ exists? "exists." "doesn't exist." ? print ] bi ;
 
{ "input.txt" "/input.txt" "docs" "/docs" } [ print-exists? ] each</lang>
 
=={{header|Forth}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.