private async void CreateFILE(string file_name) { folder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Assets"); sampleFile = await folder.CreateFileAsync(file_name, CreationCollisionOption.OpenIfExists); } private async void WriteFILE() { await Windows.Storage.FileIO.WriteTextAsync(sampleFile, xml_file); //here throw exception // xml_file is xml file contain string xml_file = @"<?xml version=""1.0"" encoding=""utf-8"" ?>\n<Players>\n"; //... xml_file+="</Players>"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)