ftp from a c sharp application

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
 
A

Arne Vajhøj

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
 
N

Nicola Musatti

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top