[Mono-dev] accessing file on a windows share
Buderya Roshan
broshan at novell.com
Wed Nov 16 06:37:41 EST 2005
Hi,
I am trying to access a file on a remote share (Windows share with full
access to everyone). On windows using .net I can access and read the
file as
StreamReader sr = new
StreamReader(@"\\server_name\share_name\file_name");
string line = sr.ReadLine();
But when I compile & run the same under mono for windows, I get
System.IO.DirectoryNotFoundException. How do I specify the filepath in
mono? Also when this is running from Linux (Samba client setup) do I
need to do something else?
Thanks,
Roshan
More information about the Mono-devel-list
mailing list