Home Cooker Classes Others Rice CookerGX
Classes  >  loader  >  DownloadString(uri)
loader class : DownloadString(uri) method

Description

Downloads the resource with the specified URL to a string.

Syntax

loaderInstance.DownloadString(uri targetUrl)

Arguments

ClassNameDescription
uritargetUrlURL of a resource that want to download.

Return value

ClassDescription
stringDownloaded data.

Sample code

//anyLoader is a instance of loader type.

uri targetUrl = new uri("ftp://localhost/anyfile.txt");

string downloadData = anyLoader.DownloadString(targetUrl);

Notes

It's a wrapper of the System.Net.WebClient.DownloadString(Uri).

Links for reference

Copyright © Rice All rights reserved.