How to read a file from Ftp
-
Hi all, Can you please assist me with any relevant code in Csharp/ASp.net that helps me reading a CSV file off an Ftp site and populate a table in my database. Thank you very much.
Check out ye olde FtpWebRequest class, its like HttpWebRequest, but for FTP instead. What you end up with is a stream to the file, then you can read it like you would any other stream.
My current favourite word is: Nipple!
-SK Genius
-
Check out ye olde FtpWebRequest class, its like HttpWebRequest, but for FTP instead. What you end up with is a stream to the file, then you can read it like you would any other stream.
My current favourite word is: Nipple!
-SK Genius
-
Thank you very much.Your help is much appreciated. Can you please give me a little more tips please? Thank you.
http://msdn2.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^] That has code examples on deleting a files on an ftp server, displaying files, and other useful information
My current favourite word is: Nipple!
-SK Genius