WebClient request = new WebClient(); request.Credentials = new NetworkCredential("username", "password"); byte[] fileData = request.DownloadData("ftp://testftp01/downloadfile.exe"); FileStream file = File.Create(@"c:\temp\downloadfile.exe"); file.Write(fileData, 0, fileData.Length); file.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)