Answers for "lua check file exist or not"

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 "lua check file exist or not"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language