Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
khat33b
Level 7

Read and write from temp file

How do I read and write data from a temporary file in the folder "tmp:"? The data which I am storing is too big to be stored in the registry.
0 Kudos
2 Replies
destruk
Level 10

Re: Read and write from temp file

data=ReadAsciiFile("tmp:/example.txt")
WriteAsciiFile("tmp:/example.txt", data)

http://sdkdocs.roku.com/display/sdkdoc/ ... ngasString
0 Kudos
RokuMarkn
Level 7

Re: Read and write from temp file

Note however that the temp filesystem doesn't persist when your channel is closed. See http://sdkdocs.roku.com/display/sdkdoc/File+System

--Mark
0 Kudos