摘要:
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 阅读全文
摘要:
记下两篇写的不错的文章:http://www.cnblogs.com/whiteyun/archive/2009/09/02/1541043.htmlhttp://blog.csdn.net/blueboy2000/article/details/5441745 阅读全文