function 写入文件(path,content, isCle)
local iRet, sRet = pcall(function()
content = content or ""
local mode = ""
if isCle then
mode = "w"
else
mode = "a"
end
local f = io.open(path, mode)
if f~=nil then
local ret = f:write(content)
f:close()
end
return ret
end)
if iRet == true then
return sRet
else
print(sRet)
return nil
end
end