Read File from FTP location in Console Application using C#
Today I'm going to tell you to read text from FTP Location.Plz follow below steps to fetch
Step 1 :- Place code in Class file
WebRequest request = WebRequest.Create(ConfigurationManager.AppSettings["FTPPath"]);
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.Credentials = new NetworkCredential(ConfigurationManager.AppSettings["FTPUserName"],
ConfigurationManager.AppSettings["FTPPassword"]);