Reading File From Network drive
-
Hi all, can any one please tell me how can i read from a file which resides in net work drive? Regards Lijo
-
Hi all, can any one please tell me how can i read from a file which resides in net work drive? Regards Lijo
As a usual file (e.g.
System.IO.File.ReadAllText(...)
) :) Doesn't it work?See my article about Windows 7 Taskbar timer here on CodeProject
-
As a usual file (e.g.
System.IO.File.ReadAllText(...)
) :) Doesn't it work?See my article about Windows 7 Taskbar timer here on CodeProject
my file resides in remote system. from that system only i want to read a file. can you please tell me how can i do that? Regards Lijo
-
Hi all, can any one please tell me how can i read from a file which resides in net work drive? Regards Lijo
It's the same as when you read a file from your local drive. Why would you think it would be any different?
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
my file resides in remote system. from that system only i want to read a file. can you please tell me how can i do that? Regards Lijo
This can be done in 3 ways: 1. Map the remote drive (this means, assing e.g. Z: letter to the drive) 2. Read from this location:
\\remote-computer\Share\path\file.txt
. In this case, the file must be shared inShare
folder on the remote computer. 3. If you are running under the credentials of the administrator on the remote computer (this means that two computers are in the same domain), you can read directly from this path:\\remote-computer\C$\path\file.txt
.See my article about Windows 7 Taskbar timer here on CodeProject
-
my file resides in remote system. from that system only i want to read a file. can you please tell me how can i do that? Regards Lijo
Please see also my answer in this thread on CodeProject: [^]
See my article about Windows 7 Taskbar timer here on CodeProject