函数:io.close 关闭文件句柄

优质
小牛编辑
126浏览
2023-12-01

函数名称:关闭文件句柄

函数功能:关闭文件句柄

函数方法

io.close()

函数用例

file,msg = io.open("/mnt/sdcard/kazhu.txt")
if file then
    dialog("打开成功",5000)
    file:close()
else
    dialog("打开失败,失败原因:"..msg,5000)
end