--io文件当中有一个叫做open的函数--r 读, a 追加,w写,b二进制local f=assert(io.open("1.txt","r"))local string=f:read("*all")f:close();print(string)
--io文件当中有一个叫做open的函数--r 读, a 追加,w写,b二进制local f=assert(io.open("2.txt","w"))local string="dongshenshige shuaige"f:write(string)print(string)