摘要: 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, "\", 阅读全文
posted @ 2013-04-01 13:51 gnefey 阅读(481) 评论(0) 推荐(0) 编辑