Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Roku 中,如何从文件夹中的临时文件读取和写入数据tmp:?我找不到任何与此相关的文件。我存储的数据太大而无法存储在注册表中。
tmp:
有两个简单的函数可以从tmp:/文件夹中读取和写入数据:
tmp:/
ReadAsciiFile(filepath as String) as String
text=ReadAsciiFile("tmp:/config.txt")
WriteAsciiFile(文件路径为字符串,文本为字符串)为布尔值
WriteAsciiFile("tmp:/config.txt", "the text to write")
源中的进一步文档。
来源: http ://sdkdocs.roku.com/display/sdkdoc/BrightScript+Language+Reference#BrightScriptLanguageReference-78ReadAsciiFilefilepathasStringasString