Can't get my head round relative path
<p>This is probably something mind-numbingly obvious, but I'm new to c# so be gentle...</p>

<p>I have an application which (in theory) parses a text file into an array. Despite the text file being a peer of the aspx file I can't get the relative path right. Don't know if it makes any difference (I'd assume not) but I'm using code-behind.</p>

<p>My folder structure looks like this:</p>

<ul>
<li>default.aspx</li>
<li>default.aspx.cs</li>
<li>default.aspx.designer.cs</li>
<li>album.cs</li>
<li>albums.txt</li>
<li>web.config</li>
</ul>

<p>And this is the code I'm using:</p>

<pre><code> protected void Page_Load(object sender, EventArgs e)
    {

         string[] allLines = File.ReadAllLines(@"Albums.txt");
         Album[] Albums = new Album[allLines.Length];
         for (int i = 0; i &lt; allLines.Length; i++)
         {
           string[] lineSplit = allLines[i].Split(',');
           Albums[i] = new Album();
           Albums[i].ID = Convert.ToInt32(lineSplit[0]);
           Albums[i].title = lineSplit[1];
           Albums[i].keyName = lineSplit[2];
       }
   }
</code></pre>

<p>However, when I build it I get an error saying albums.txt can not be found, and it fails.</p>

<p>Any pointers would be greatly appreciated.</p>

<p>Ben</p>
