io.fileExists
Description
Checks whether a file exists.
Parameters
filename
string
Return value
exists
boolean
Example
if io.fileExists("test.txt") then
print("test.txt exists!")
else
print("test.txt does not exist")
end
Comments
See also
Back