Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network file transfer ?

Status
Not open for further replies.

mirko03

Programmer
Dec 25, 2005
2
YU
Hi,

I need to make C# windows application which should send/receive some text files to/from
computer with linux OS (and overwrite existing file). In addition it would be nice if it is possible directly edit some files. Location on both computers are known. I need some advices how to implement this solution... Should I use telnet , ftp or something else... ???
Code samples would be helpful..

Thank you
 
FTP is quite well supported. It really depends on the infrastructure avaliable from each PC. Do you really want to run an FTP Server on each PC?

You can also use regular file transfers to networked computers. The same as going to My Network Places and seeing an entire network. My knowledge of linux is limited so I'm not sure if its that straight forward - definately worth looking into though. You might want to look into System.IO; and the Directory namespaces.
 
Look at Samba for Linux File Sharing within a Windows network.

Try not to use FTP unless you need to - it is quite a flakey protocol, however, is relatively simple.

A smile is worth a thousand kind words. So smile, it's easy! :)
 
JurkMonkey,

I have a similar problem as damper. I was planning on solving it with FTP. What you mean by "it is a flakey protocol"? Will FTP be reliable? These file transfers will be scheduled over night, and bad things will happen if they don't succeed.

- Dan
 
I didn't write the Flakey part, but it is true. FTP sends all information in clear text (no security) and isn't 100% reliable. Its also a pain to set up an FTP server on every box. You might want to look like a file sharing system. Let your application(s) pull from one specific type of box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top