[手游项目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
posted @ 2018-06-20 11:59  byfei  阅读(1142)  评论(0编辑  收藏  举报