ftp from a c sharp application

  • Thread starter Thread starter Laoballer
  • Start date Start date
L

Laoballer

Hello all,
I'm new to C sharp and am starting a project where I have to bring in
historic weather data into a mysql database. The weather data can be
retrieved via anonymous ftp spanning multiple files. What I would like
to be able to do is create a C# application that will ftp into the
server and download the necessary files automatically. Does anyone
have any suggestions on how to do this and point me in the right
direction.

Thanks
 
Laoballer said:
I'm new to C sharp and am starting a project where I have to bring in
historic weather data into a mysql database. The weather data can be
retrieved via anonymous ftp spanning multiple files. What I would like
to be able to do is create a C# application that will ftp into the
server and download the necessary files automatically. Does anyone
have any suggestions on how to do this and point me in the right
direction.

WebClient or (Ftp)WebRequest should be able to do what
you want.

(Ftp)WebRequest will provide you with a stream you can read from.

WebClient has DownloadData and DownloadString methods for
convenience.

Arne
 
Laoballer said:
Hello all,
I'm new to C sharp and am starting a project where I have to bring in
historic weather data into a mysql database. The weather data can be
retrieved via anonymous ftp spanning multiple files. What I would like
to be able to do is create a C# application that will ftp into the
server and download the necessary files automatically. Does anyone
have any suggestions on how to do this and point me in the right
direction.

In my opinion the standard .NET classes tend to be a bit too web
application oriented. If I were you I'd consider looking for a specific
library/component, either commercial or open source. My own one is
available from here: http://dotnx.sourceforge.net/index.html , but I
suggest you do a little shopping around before choosing.

Cheers,
Nicola Musatti
 
Back
Top