System.IO question....

How can I make this work

<code>
if (File.Exists(@"http:\\anIpAddress\myfs\test.txt")) label1.Text = "Works!";
else label1.Text = "Nope!";
</code>

I need to use the System.IO methods on files on a server that I access by ip address. If I run this code I get a 'Nope!' every time, but if I navigate in a browser to http:\\anIpAddress\myfs\test.txt it takes me to it just fine. File Sharing is turned on...

Thanks!



Answer this question

System.IO question....