用法:
s b = otob("%abc.txt")
//将字节组转换为文件
//输入字节组,文件路径,是否覆盖,变量 b 可为byte[] 字节数组对象
btoo(b, "%abc2.txt", true)
s b = otob("utf-8", "nihao")
//字节组转换为字符串,变量 b 可为byte[] 字节数组对象
s c = btoo("utf-8", b)
syso(c)
//不设置编码
s c = btoo(null, b)
说明:
将字节组转换为字符或文件
用法:
s b = otob("%abc.txt")
//将字节组转换为文件
//输入字节组,文件路径,是否覆盖,变量 b 可为byte[] 字节数组对象
btoo(b, "%abc2.txt", true)
s b = otob("utf-8", "nihao")
//字节组转换为字符串,变量 b 可为byte[] 字节数组对象
s c = btoo("utf-8", b)
syso(c)
//不设置编码
s c = btoo(null, b)
说明:
将字节组转换为字符或文件