file = io.open("test.lua", "r"); -- 设置默认输入文件为 test.lua; io.input(file); -- 输出文件第一行; print(io.read()); -- 关闭打开的文件
確定! 回上一頁