file io

About this tag
File I/O in Universal Windows Platform (UWP) apps involves reading and writing data to files, but developers often encounter access restrictions due to the app sandbox. Common issues include UnauthorizedAccessException when trying to save to files in the app's installed location, as reading is permitted but writing is not. To share local app data between apps or users, UWP provides mechanisms like shared storage folders or the DataTransferManager. Understanding file permissions and using appropriate APIs such as Windows.Storage.FileIO and ApplicationData is essential for reliable file operations in Windows apps.
  1. K

    Windows 10 Can't save to text file with visual c# universal app

    Link Removed 0 I can't save any changes to the text file settings.txt , but reading the file works. The code is private async void LedShow_Loaded(object sender, RoutedEventArgs e) { var path = @"settings.txt"; var folder =...
  2. News

    Sharing your local app data

    In the first installment of this blog series we looked at the various options at your disposal to store your app’s local data. In this post we will be looking at how that local data can be shared, both between apps and users. When an app is installed, the system creates a per-user app data...
Back
Top