摘要: cpFile.lua 1 function copyfile(source, destination) 2 sourcefile = io.open(source,"r") 3 assert(sourcefile) 4 destinationfile = io.open(destination,"w") 5 assert(destinationfile) 6 for line in sourcefile:lines() do 7 print(line) 8 destinationfile:write(line) 9 destinationfile:wri 阅读全文
posted @ 2012-08-26 22:49 good90 阅读(3261) 评论(0) 推荐(0) 编辑
摘要: 记下两篇写的不错的文章:http://www.cnblogs.com/whiteyun/archive/2009/09/02/1541043.htmlhttp://blog.csdn.net/blueboy2000/article/details/5441745 阅读全文
posted @ 2012-08-26 17:53 good90 阅读(212) 评论(0) 推荐(0) 编辑