c# copy file
File.Copy(Path.Combine(sourceDir, fName), Path.Combine(distDir, fName));
c# copy file
File.Copy(Path.Combine(sourceDir, fName), Path.Combine(distDir, fName));
c# download file
using System.Net;
using (WebClient web1 = new WebClient())
web1.DownloadFile("URL", "FileName");
}
c# download file
string remoteUri = "http://www.contoso.com/library/homepage/images/";
string fileName = "ms-banner.gif", myStringWebResource = null;
// Create a new WebClient instance.
using (WebClient myWebClient = new WebClient())
{
myStringWebResource = remoteUri + fileName;
// Download the Web resource and save it into the current filesystem folder.
myWebClient.DownloadFile(myStringWebResource, fileName);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us