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

函数名称:关闭文件句柄

函数功能:关闭文件句柄

函数方法

io.close()

函数用例

file,msg = io.open("/mnt/sdcard/kazhu.txt")
if file then
    dialog("打开成功",5)
    file:close()
else
    dialog("打开失败,失败原因:"..msg,5)
end
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""