获取文件对象的字符串表示形式。
toString()
示例
获取文件对象的字符串表示。
javascript function main() { let file = os.open("data/data.txt", "r") Log("File info:", file.toString()) // File info: File(data/data.txt) file.close() }
返回值
string
返回文件对象的字符串表示形式。
参考
close puts printf flush tell seek eof read write getline toString
close
puts
printf
flush
tell
seek
eof
read
write
getline
toString
备注
返回文件对象的描述信息。