Reading file on a different server

jrvbdeveloper

Member
Joined
Jul 15, 2007
Messages
17
Programming Experience
Beginner
Hi,

What is the best practice if need to read/open file that is located on a different server? How to do this? I know opening a local file is easy, but what to do if the file's on a different server?

Thanks in advance.
 
Assuming it's a server on the same network then it's no different to opening a local file. How do you open files on remote machines in Windows Explorer? You either need to map the remote folder to a local drive letter and use a local path or else you need to provide a UNC path, e.g. "\\server\folder\file". It's exactly the same in .NET code.
 
Back
Top