你好, getFileOperation總是失敗, 請問哪裡出了錯, 謝謝
原始碼如下:
void App::OnFileActivated(Windows::ApplicationModel::Activation::FileActivatedEventArgs^ args)
{
String^ path = args->Files->GetAt(0)->Path;
task<StorageFile^> getFileOperation(StorageFile::GetFileFromPathAsync(path));
getFileOperation.then([this](StorageFile^ file)
{
return FileIO::ReadTextAsync(file);
});
}