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.
-
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 =...- Kenne76
- Thread
- access denied async programming development issues file access file io settings file universal apps visual c# windows storage
- Replies: 2
- Forum: Programming and Scripting