Access it via a UNC.
System.IO.FileStream stream = System.IO.File.OpenRead("\\servername\sharename\path\file.txt");
If this code is running under asp.net then you'll need to change the anonymous user account to a domain account that has the desired access as the default account can't access the network.