File Manage:
IStorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
DeviceFirmwareUpdateService.log(folder.Path);
IReadOnlyList<IStorageItem> items = await folder.GetItemsAsync();
DeviceFirmwareUpdateService.log("Items:");
foreach (IStorageItem i in items) {
DeviceFirmwareUpdateService.log(i.Name);
}
DeviceFirmwareUpdateService.log("Files:");
IReadOnlyList<StorageFile> items1 = await folder.GetFilesAsync();
foreach (StorageFile i in items1)
{
DeviceFirmwareUpdateService.log(i.Name);
if(i.Name=="Note.txt")
DeviceFirmwareUpdateService.log("File Note found!");
}
IStorageFile file = await folder.GetFileAsync("Note.txt");
var _content = await Windows.Storage.FileIO.ReadTextAsync(file);
Update UI while looping
Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
() =>{
this.textBox.Text = this.textLog;
});