How to download a simple text file?

0

How do I get and get the String contained in an online file in Windows Phone 8.1 SDK?

    
asked by anonymous 23.01.2016 / 08:09

1 answer

1

You can do this:

private async Task<string> DownloadAndReadFile(string url)
{
    HttpClient client = new HttpClient();
    return await client.GetStringAsync(url);
}
    
19.02.2016 / 15:43