Read Multiple Files from folder and Download using FTP location in Console Application using C#
Today I’m going to tell you to read multiple files from folder using FTP Location.Please follow below steps to fetch
Step 1 :- Place code in Class file
string ftpDownloadResult = string.Empty;
try
{
WebRequest request = WebRequest.Create(ConfigurationManager.AppSettings["FTPPath"]);
request.Method = WebRequestMethods.Ftp.ListDirectory;
request.Credentials = newNetworkCredential(ConfigurationManager.AppSettings["FTPUserName"],
ConfigurationManager.AppSettings["FTPPassword"]);