i have a question. If there is a possibility at windows phone 8 at visual studio to create button event to read text file? i know about streamReader and if i declare wchich exacly file i want to read, but if i want to choose from list of files wchich i want to display. i did research on the Internet but i didint find an answer. I know i can use isolatedStorage to read music, video, image but not text files, on the app i created few files with text in it and i want users to have posibility to display one from this file, whichever they want to see. So, can you tell me how to do this?
Windows Phone 8 choose text file C#
99 views Asked by Karolina At
2
There are 2 answers
0
On
With Windows Phone 8.1, File Pickers are allowed, consisting the same functionality you are expecting, so probably you might want to upgrade your app to WP8.1.
Here's more info on this API : Working with File Pickers
You can use
IsolatedStorage
to read any file type you wish. You must of been using something like aLauncher
that filters out the file type based on the Chooser.You can open a file like this:
If you want to get the PackageLocation (files that you added into the project like assets and images) then replace the
LocalFolder
with