Answer the question
In order to leave comments, you need to log in
How to open a file on a remote computer? Do you have a username and password?
for example string s = File.ReadAllText("path/file.txt");
On the remote computer, the login and password (they are), but how can I programmatically transfer them so that they can access the file?
Answer the question
In order to leave comments, you need to log in
Well, I think, as an option, it is to connect a (remote) disk to Windows, and access it via File.ReadAllText("server1//file.txt");
At the time of connection, Windows will require a login / password, and then you will work with this disk as with your own.
PS if it works, let me know
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question