I am trying to read a CSV file from my FTP server.
I created the connection:
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://myserver.com/report_2018_10_23.csv");
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.Credentials = new NetworkCredential("USERNAME", "PASSWORD");
request.UsePassive = true;
request.UseBinary = true;
request.EnableSsl = false;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
How can I read the response content? Can I use File.ReadAllText with the response content?
Thanks