나는 Windows phone 프로젝트를하고 있으며, 인터넷에서 텍스트 파일을 다운로드하고 그 내용을 읽을 필요가 있습니다.Windows phone 8.1의 google 드라이브에서 txt 파일을 다운로드하십시오.
private async Task pobierz()
{
string source = "https://drive.google.com/file/d/0BzgKBwKyU4oORkxxSlVITGswb1E/view?usp=sharing";
string LocalName = "hej.txt";
var srce = new Uri(source, UriKind.Absolute);
// var destinationFile =await KnownFolders.PicturesLibrary.CreateFileAsync()
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri(@"ms-appx:///Assets/hej.txt"));
var downloader = new BackgroundDownloader();
DownloadOperation download = downloader.CreateDownload(srce,file);
}
이 아마도 당신이 "가 작동하지 않았다"어떻게 설명 할 수 있습니까? –
좀 더 설명해 주시겠습니까? –
내 프로그램이 잘 debbuging 아무 예외도 표시되지 않습니다 :/ – Witcherek