Forum Discussion

liran's avatar
liran
Visitor
15 years ago

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

4 Replies