transfer files in windows forms

I have a couple of text files and I want to display its content in a textbox, but the files are in a different machine

What would be the easiest way to do that, the files are small and the content would be displayed as it is in the file

I thought about a web service but it might be just too much for a couple of 10K files

Then I thought maybe remoting, but since I have never used it I have no idea if its the way to go and how complicated it is to use

Or maybe sockets

Thanks in advance

                                    Isaac B


Answer this question

transfer files in windows forms

  • Derrick Powell

    If you can "see" the other machine from the current one using a UNC path, then you don't need any of these--simply use the UNC path name. If not, I'm guessing Sockets would be the most efficient, and the most effort. Remoting would be good, but it's a bit of effort to set up and use. Web Services are the simplest, and the slowest at runtime, in general. 
  • transfer files in windows forms