Here's how I usually save files PHP: using (StreamWriter writer = new StreamWriter(GetDocumentsPath()+"/"+filename)){ writer.Write("foo");} But yet again this code doesn't seem to be supported in Windows 8. Does anyone know a way to do this? EDIT: It seems FileStream is supported in Windows Phone 8, but not Windows Store.
May I know are you talking about xml files.? if you are talking about xml then I can help you may be. So please let me know that, and also let me know your exact query. So this is my reverse question to you. Hope you don't mind.
I'm just trying to save a simple text file, but if there's an easy way of doing it with xml files I'm willing to consider that too. There should be a way of saving a text file in Windows 8, however.
Check this example - http://files.unity3d.com/tomas/Metro/Examples/MetroIOPluginsV1.zip, it shows how to read a file, but it should be trivial to write a save function.
This page shows the various accepted ways to read/write files in a Windows Store App... http://msdn.microsoft.com/en-us/library/windows/apps/hh758325.aspx