liran
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2011
03:11 AM
Read files at Roku - failed ?
Hello
I have this code:
file = CreateObject("roReadFile", "temp.txt")
if type(file) = "roReadFile" then 'The file exists
print " file exists."
text = file.ReadLine()
print "content: "+text
else
print "file NOT exists."
endif
at 'videoplayer' sample application.
The file is located at the root folder of the application, and also at the 'source' folder.
But the file object creation is failing ("file NOT exists.").
( I currently don't need AtEof() function )
Why is that ?
Thanks
I have this code:
file = CreateObject("roReadFile", "temp.txt")
if type(file) = "roReadFile" then 'The file exists
print " file exists."
text = file.ReadLine()
print "content: "+text
else
print "file NOT exists."
endif
at 'videoplayer' sample application.
The file is located at the root folder of the application, and also at the 'source' folder.
But the file object creation is failing ("file NOT exists.").
( I currently don't need AtEof() function )
Why is that ?
Thanks
4 REPLIES 4
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2011
08:37 AM
Re: Read files at Roku - failed ?
roReadFile isn't a valid component.
Look at roFileSystem, page 112 of the component reference.
Look at roFileSystem, page 112 of the component reference.
liran
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2011
08:48 AM
Re: Read files at Roku - failed ?
Thanks, I'll try it.
So another question:
What is the official reference should I look at ?
This:
http://c1807832.r32.cf0.rackcdn.com/Com ... ce_v29.pdf
Or this:
http://www.brightsign.biz/documents/Bri ... erence.pdf
Or else ?
So another question:
What is the official reference should I look at ?
This:
http://c1807832.r32.cf0.rackcdn.com/Com ... ce_v29.pdf
Or this:
http://www.brightsign.biz/documents/Bri ... erence.pdf
Or else ?
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2011
09:13 AM
Re: Read files at Roku - failed ?
The information on this page for 2.9 -
https://owner.roku.com/Developer/DevHome
And you might want to ask fopr the beta upgrade to 3.0 for the latest features - information found here: viewtopic.php?f=34&t=39272
to make sure stuff you build won't break in the next release.
https://owner.roku.com/Developer/DevHome
And you might want to ask fopr the beta upgrade to 3.0 for the latest features - information found here: viewtopic.php?f=34&t=39272
to make sure stuff you build won't break in the next release.
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2011
09:15 AM
Re: Read files at Roku - failed ?
You may need to sign up as a developer to get access to the developer page - but sign up would be free.
viewtopic.php?f=34&t=36014
viewtopic.php?f=34&t=36014