Answers for "how to check if file exists lua"

0

how to check if file exists lua

function file_exists(name)
   local f=io.open(name,"r")
   if f~=nil then io.close(f) return true else return false end
end
Posted by: Guest on September-30-2020

Code answers related to "how to check if file exists lua"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language