Windows 10: Can't save to text file with visual c# universal app
Can't save to text file with visual c# universal app
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 = Windows.ApplicationModel.Package.Current.InstalledLocation;
var file = await folder.GetFileAsync(path);
var lines = await Windows.Storage.FileIO.ReadLinesAsync(file);
sliderDelay.Value = Convert.ToInt32(lines);
textBlockDelayValue.Text = lines + " seconds";
buttonSave.IsEnabled = false;
and the error message is
An exception of type 'System.UnauthorizedAccessException' occurred in System.Private.CoreLib.dll but was not handled in user code
Access is denied. (Excep_FromHResult 0x80070005) occurred
Can someone help me?
Hi there forum,
how do you change the Visual effects using a batch file or registry file.
Is it possible to make a .reg file to optimize my visual effects for best performance for all users that sign into one PC?
I want to do this because we have many people who sign into the PC via our Active Directory through the network. If I can...
I have a software called simplant that for activation it saves a key in the form of a text file to c: I tried everything from take ownership to disable UAC and I can't get the key to activate the software. If I install windows 8 it works...
This is pretty outrageous! I did not bargain for hours of my time to figure out the new, improved Windows 10. Not only did I lose admin status, half of my bookmarked favorites have disappeared.
I've seen the "take ownership..." articles, and...
Source: Whatâ€™s New in Visual Studio Tools for Universal Windows Apps