[手游项目2]-4- lua判断文件是否存在
function loadConfig(FileName)
local f = io.open(FileName,"r")
if(f == nil )then
--BaseFuc.LuaLog("loading config["..FileName.."] false")
return false
end
f:close()
return true
end
local f = io.open(FileName,"r")
if(f == nil )then
--BaseFuc.LuaLog("loading config["..FileName.."] false")
return false
end
f:close()
return true
end