file = io.input("test1.txt") -- 使用io.input() 函數打開文件. repeat. line = io.read() -- 逐行讀取內容,文件結束時返回nil.
確定! 回上一頁