isfile
Returns whether a path points to a file.
function isfile(pathpathstringPath to check.: string): booleanbooleantrue if a file exists at path.Usage
Conditional read
if isfile("config.json") then
local cfg = readfile("config.json")
endReturns whether a path points to a file.
function isfile(pathpathstringPath to check.: string): booleanbooleantrue if a file exists at path.if isfile("config.json") then
local cfg = readfile("config.json")
end