摘要:
1 -- saves a Lua var as xml file2 function save(var,filename)3 if not var then return end4 if not filename or #filename==0 then return end5 local file = base.io.open(filename,"w")6 file:write("<?xml version=\"1.0\"?>\n<!-- file \"",filename, "\", 阅读全文