In Roku, how do I read and write data from a temporary file in the folder tmp:
? I cannot find any documentation relating to this. The data which I am storing is too big to be stored in the registry.
相关问题
- Redirect to Home page After Clicked Save button us
- How to Access another file Label using a Brightscr
- Trouble playing vid pre-roll ad in Roku
- Roku: Playback is not smooth on Roku-4 device for
- Change default font roFontRegistry in Roku
相关文章
- How to Access another file Label using a Brightscr
- Trouble playing vid pre-roll ad in Roku
- Roku: Playback is not smooth on Roku-4 device for
- Change default font roFontRegistry in Roku
- Why the items in all the rows of row list are gett
- How to display HTML page using BrightScript
- How feasible is Roku app development with Marmalad
- How can I stream Youtube videos in my Roku Channel
There is two simple functions do read and write data from
tmp:/
folder:ReadAsciiFile(filepath as String) as String
text=ReadAsciiFile("tmp:/config.txt")
WriteAsciiFile(filepath as String, text as String) as Boolean
WriteAsciiFile("tmp:/config.txt", "the text to write")
Further documentation in source.
Source: http://sdkdocs.roku.com/display/sdkdoc/BrightScript+Language+Reference#BrightScriptLanguageReference-78ReadAsciiFilefilepathasStringasString