I’m developing a metro app that uses file input and output. The code I used to save the file is
StorageFolder appfolder = await Windows.Storage.KnownFolders.DocumentsLibrary.CreateFolderAsync("Appdata.abc", Windows.Storage.CreationCollisionOption.ReplaceExisting);
StorageFile file = await Windows.Storage.KnownFolders.DocumentsLibrary.CreateFileAsync(DateFileName + ".uvraj", Windows.Storage.CreationCollisionOption.ReplaceExisting);
Now how can I create/save my file inside the folder I created??
Call the method on the
appfolderobject, instead of theKnownFolderyou’re using.Like this: