Check that file exists: Difference between revisions

Line 379:
=={{header|Arturo}}==
 
<lang arturo>checkIfExists: [@(file]){
if $(exists[fileExists file)] { print file + " exists" } { print file + " doesn't exist" }
}
 
checkIfExists "input.txt"
checkIfExists "docs"
 
checkIfExists "/input.txt"
checkIfExists "/docs"</lang>
1,532

edits