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