How to download a simple text file?

Asked

Viewed 68 times

0

As I bass and catch the String contained in an online file on Windows Phone 8.1 SDK?

  • Talk more about this online file, is ftp, is an html page

  • It is an FTP file, but can be accessed via HTML.

1 answer

1


You can do it like this:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.