level 1
function main()
--读
local file1=io.input("/var/touchelf/信息/number.txt")
local str=io.read("*a")
print(str)
--写
local file2=io.output("/var/touchelf/信息/number2.txt")
io.write(str)
io.flush()
io.close()
end
应该怎么改 才能让number2.txt里面的内容增加 而不是覆盖?求教了~~
2015年10月21日 05点10分
1