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
Generated on the 26 June 2024 at 22:01:29 (UK Time)