<p>I have a C# .NET web project that I'm currently working on.  What I'm trying to do is read some files that I dropped into a dir which is at the same level as fileReader.cs which is attempting to read them.  On a normal desktop app the following would work:</p>

<pre><code>DirectoryInfo di = new DirectoryInfo(./myDir);
</code></pre>

<p>However because it's a web project the execution context is different, and I don't know how to access these files?</p>

<p>Eventually fileReader will be called in an installation routine.  I intend to override one of the Installer.cs' abstract methods so will this affect the execution context?</p>

Use
```
Server.MapPath
```
to get the local path for the currently executing page.