I’m writing a small game for Windows Phone 7.
It’s a vocabulary based game, I have a text dictionary which is basically a huge text file with a large number of words.
How can I use this with the emulator. I found that we can only access files that our app creates with IsolatedStorage. Should I be manually creating this file each time the app loads(This isn’t a feasible approach) or can I somehow bundle the text file with the application. In the latter case how can I access this file.
Just to be clear I’m not looking for links to tutorials for Isolated Storage.
I want to add that text file to my project resources and copy that to IsolatedStorage. I don’t know how to do this, if someone could help me with this, it’d be great.
In fact when you use the emulator, you can use the isolatedStorage, but if you quit the emulator, the isolatedStorage is deleted.
So, what you have to do, is to not quit the emulator, to let the file in the IsolatedStorage, but you can exit the application.
How to write a txt file from content to isolatedStorage
This code must be placed in the function
In App.xaml.cs