UWP how to get access to file in folder
问题 Help me please, I can't get access to file which I choose by FileOpenPicker. FileOpenPicker openPicker = new FileOpenPicker(); openPicker.ViewMode = PickerViewMode.Thumbnail; openPicker.SuggestedStartLocation = PickerLocationId.Desktop; openPicker.CommitButtonText = "Открыть"; openPicker.FileTypeFilter.Add(".xlsx"); var file = await openPicker.PickSingleFileAsync(); using (FileStream fs = new FileStream(file.Path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { } What is wrong? 回答1: