以只讀方式打開文件file = io.open("test.lua", "r")-- 設置默認輸入文件為test.lua io.input(file)-- 輸出文件第一行print(io.read())-- 關閉打開的 ...
確定! 回上一頁