function copyfile(source,destination) sourcefile = io.open(source,'r') destinationfile = io.open(destination,'w') for line in sourcefile:lines() do destinationfile:write(line) end sourcefile:close() destinationfile:close() end copyfile('C:/1.txt',& ...