C# FTP Client

  • Thread starter Thread starter Arvi
  • Start date Start date
A

Arvi

Hi,

i need to write a application which gets the parameter of a file name and
reads the file.

the file has a list of paramters like ftp name, username, password,
passivemode, etc

and then it has to do a ftp transaction depending on the content of a file.

is it possible? or someone has a sampleapp or sample code for this?

Thanks

Arvi
 
No. I am here to reply to queries and post some of my own.
Your question was 'Is it possible ?' and in any plain and simple english
which you might understand, the answer will be 'Yes' or 'No' (in case you
know the concept of bool :)
 
FUnky said:
No. I am here to reply to queries and post some of my own.
Your question was 'Is it possible ?' and in any plain and simple english
which you might understand, the answer will be 'Yes' or 'No' (in case you
know the concept of bool :)

Let me try to help a little more:-) I assume that you know how to read
configuration settings from the file (there are a lot of samples in
MSDN). Regarding FTP transaction - it's also not hard to implement. You
can use one of the open source FTP libraries, for example this one -
http://sourceforge.net/projects/dotnetftpclient. Simply create and open
the connection object, navigate to desired folder and upload file.
Don't forget to close the connection:-)
 
Hi Arvi,

There are some examples of these things on the Microsoft site..

Getting of parameters..
http://msdn.microsoft.com/library/d...ref/html/frlrfsystemenvironmentclasstopic.asp

Reading of files..
http://msdn2.microsoft.com/en-us/library/system.io.streamreader.aspx

Transactioning through ftp..
http://msdn2.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

Watch for word-wrapping

Hope it's helpful
Eliott


| Hi,
|
| i need to write a application which gets the parameter of a file name and
| reads the file.
|
| the file has a list of paramters like ftp name, username, password,
| passivemode, etc
|
| and then it has to do a ftp transaction depending on the content of a
file.
|
| is it possible? or someone has a sampleapp or sample code for this?
|
| Thanks
|
| Arvi
|
|
 
Back
Top