[手游项目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
原文地址:https://www.cnblogs.com/byfei/p/14104237.html