Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #file #exists #lua
ADD COMMENT
Topic
Name
6+4 =