Jump to content

Check that file exists: Difference between revisions

m (→‎{{header|Stata}}: stored as string, would be an error without the macro quotes)
Line 1,041:
 
=={{header|I}}==
<lang i>functionconcept exists(""filenamepath) {
var file = open(filenamepath)
issueserrors {
if error.DoesNotExist()
print(filename+path, " does not exist!")
end
return
}
print(filename+path, " exists!")
close(file)
}
 
Line 1,056 ⟶ 1,057:
exists("docs")
exists("/docs")
exists("docs/Abdu'l-Bahá.txt")
}</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.