12-05-2012 11:49 PM
I'm obviously going daft here but for the life of me I cannot figure out how to read in a text file returned by the File Picker. I am currently getting the correct full path of the file from the File Picker but where do I go from there? blackberry.io.file does not seem to exist in Blackberry 10 and I am confused as to how I would utilize the HTML5 File API starting from just a file path returned by the File Picker.
Can someone please spit out a quick and dirty example showing me the basics of reading in file data starting from a path returned by File Picker please?
Thanks very much,
Solved! Go to Solution.
12-06-2012 09:19 AM
Sure if you have the path to the file then you are part way there. One thing to note. The file MUST be inside you bar(sandbox) OR you need to add the <rimermit>access_shared</rimermit>
and then the file can live in the shared folder on device.
Here is some code you can use to read a file. I poached it from our docs found here:https://developer.blackberry.com/html5/apis/blackb
12-06-2012 11:19 AM