函数:hlfs.getFileEncoding 获取文本格式(仅支持 iOS)

函数分类:ts.so

函数名称:获取文本格式

函数功能:获取文本格式

函数方法

form = hlfs.getFileEncoding(filePath)

参数 类型 必填 说明
filePath string 文件路径
返回值 类型 说明
form string 文件格式

函数示例

local ts = require("ts")
dialog(ts.hlfs.getFileEncoding(userPath().."/res/test3.txt"))--不支持相对路径
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""