Check that file exists: Difference between revisions

Added Toka
No edit summary
(Added Toka)
Line 89:
if { [file isdirectory docs] } { puts "docs exists and is a directory" }
if { [file isdirectory [file nativename /docs]] } { puts "/docs exists and is a directory" }
 
==[[Toka]]==
[[Category:Toka]]
 
[ "R" file.open dup 0 <> [ dup file.close ] ifTrue 0 <> ] is exists?
" input.txt" exists? .
" /input.txt" exists? .
" docs" exists? .
" /docs" exists? .
Anonymous user