I have a very simple question. I'am trying load async some files which should be located in ApplicationData.Current.LocalFolder, but where is that directory? How I should add some files to this folder?
C# Windows 8 XAML - Where add ApplicationData files?
179 Views Asked by user3127031 At
2
There are 2 best solutions below
0
w.b
On
You can't access this location directly, instead get a reference to it as a StorageFolder:
StorageFolder localFolder = ApplicationData.Current.LocalFolder;
then you can add or get a file:
StorageFile file = await localFolder.CreateFileAsync(fileName);
StorageFile file = await localFolder.GetFileAsync(filename)
Related Questions in XAML
- WPF multiple control property simultaneous changes
- Telerik's WPF RadColorPicker NoColorText property not working
- Ellipsis inside button content Windows Phone
- Binding to "this.property" object in VisualStateMenager
- Scroll view mistakes
- ContextMenu Closes Immediately
- Update ObservableCollection where the items are received from another List
- Looping "complex" object with ItemsControl
- Animation Trigger (Storyboard + Trigger) in C#
- Exporting Datatable
- xaml c# chart with custom axis label
- Xamarin Forms - Show Cancel button in toolbar items instead of Back (iOS)
- Can custom text be added to a listview cell?
- Bind control property from the inner control
- WPF Interactions CallMethodAction for DataTemplate in ListCheckBox thrown a exception "Could not find method on object of type"
Related Questions in ASYNCHRONOUS
- Run a loop over a callback, node js
- run oncomplete event in async
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Node JS Async Response
- ajax async: true statement execution order
- Need help making this translation function work with an array input
- How to check in an (Android) async task if the activity it was called from was finished?
- Async vs Horizontal scaling
- Task await fails
- Having two sequential steps running within a windows service
- Would async/await provide benefit over Task for intertwined statements?
- What is the best way to make two web pages communicate between each other back and forth?
- Get result from async closure - Unexpected found nil while unwrapping an Optional value
- Nested asynchronous calls using AngularJS
- Telerik Report Viewer don't work with jquery async: false
Related Questions in STORE
- Storing values in a for loop?
- Accessing a html file from a menu option does not work when I make a jar or store file
- Storing the last input text whilst using the POST method with PHP
- Compare users input
- Uploading Different Versions App to the Apple App Store
- Problems to retrieve Image from SQL Server in Silverlight
- ExtJS Grid Reconfigure breaks gridfilters plugin
- Cannot set Background Image of Grid Windows Store App through XAML
- using local storage saved value as a text in a root text
- How to add dynamic html or script to any page in Bigcommerce Store using app development API
- How to store entered values to variables and display them on screen after clicking submit button in Android Studio?
- Ember Data adaptor does not fetch records from Rails
- Extract specific information from file C++
- send the selected value from a dropdown menu to another page
- preserved value of a variable in C
Related Questions in STORAGEFOLDER
- c# Windows Phone cannot find json file
- No definition for GetFilesAsync
- How to save a folder from FolderPicker in StorageFolder?
- C# Windows 8 XAML - Where add ApplicationData files?
- Simple method to check if a directory is empty in WinRT (async API)
- StorageFolder GetFolderFromPathAsync throws Value does not fall within the expected range error
- Saving files in Windows Store apps
- Access a StorageFolder with ms-appdata
- Create a folder in LocalFolder of UWP and copy files to it
- UWP StorageFolder.GetFilesAsync() returns System.__ComObject
- check if a folder exists uwp xamarin.forms
- What is the purpose of WinRT's IStorageFolder interface?
- How to get all files in a StorageFolder in Windows Phone Runtime?
- StorageFolder.GetFilesAsync() is not working in HoloLens 2 (ARM64)
- UWP StorageFile.CopyAsync() Throwing Error: "Value does not fall within the expected range."
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In Windows 7 or 8, it is located here (Assuming Windows is installed on
C:drive):C:\Users\<your_user_name>\AppData\Localwhere
<your_user_name>will be the currently Logged in username on the PC.