我有阅读和书写轴心的旋转功能,我每次都需要用黄瓜书写新字,而不是取代以前的文字。 我如何这样做? 在我撰写文章之前,我是否需要每次阅读和阅读第1条。
我的守则是:
local function FileOutput(name)
local f = io.open(name, "w+")
local meta = {
__call = function(t, str) f:write(str ..
) end,
__gc = function() f:close() end
}
return setmetatable({}, meta)
end
function writeRec()
LOG("writing")
local testfile = FileOutput(getScriptDirectory().. /textOutput.txt )
testfile( oh yes! )
testfile = nil
end