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

函数名称:关闭文件句柄

函数功能:关闭文件句柄

函数方法

io.close()

函数用例

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

results matching ""

    No results matching ""