.net - Saving files in Windows Store apps -
my program handles files specified user. after preferable retain modified file directory of source file. storagefolder.getfolderfrompathasync method returns "access denied" . file type associations in manifest can not added because after processing files retain extension. , kind of file (with extension), user chooses impossible. code in error occurs. internal async static void setfile(list<byte> bytearray , storagefile file) { try { string path = path.getdirectoryname(file.path); storagefolder newfolder = await storagefolder.getfolderfrompathasync(path); storagefile newfile = await newfolder.createfileasync(string.format(@"crt{0}", path.getfilename(file.name)), creationcollisionoption.failifexists); stream stream = await file.openstreamforwriteasync(); binarywriter writer = new binarywriter(stream); writer.write(bytearray); writer.flush(); ...