Hi, while i've been working with the sample Windows App Store Example project offered by Microsoft (MSDN) which reads data from this file
"ms-appx:///DataModel/SampleData.json", i tried to instead write data to that file using the code below :
public static string _data_file_path = "ms-appx:///DataModel/SampleData.json";
Uri dataUri = new Uri(_data_file_path);
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
var x = jsonObject.ToString();
// It crushes in this line with ACCESS DENIED ERROR.
// the x variable is a simple json string.
await FileIO.WriteTextAsync(file, x);
thanks in advance for your assistance.