Forum Discussion
5 Replies
- destrukStreaming Stardata=ReadAsciiFile("tmp:/example.txt")
WriteAsciiFile("tmp:/example.txt", data)
http://sdkdocs.roku.com/display/sdkdoc/ ... ngasString- chaklasiyanikunRoku Guru
Is there any way to find File Location on temporary storage. getPath() or any else?
- speechlesRoku Guru
You mean so you can know if you need to read ahead of your write?
Sub LogMessages(message As String) ' write active logs in temp fileName = "tmp:/logmessages.txt" LocalFileBrowser = CreateObject("roFileSystem") if LocalFileBrowser.exists(fileName) text = ReadAsciiFile(fileName) else text = "" end if WriteAsciiFile(filename,text+chr(10)+message) End Sub
You could probably do something like the above. Not sure entirely what you are after.
- RokuMarknVisitorNote however that the temp filesystem doesn't persist when your channel is closed. See http://sdkdocs.roku.com/display/sdkdoc/File+System
--Mark