title: Unable to get right file path through StreamReader
body: <p>In my <code>MVC</code> application I am trying to open a file for reading through StreamReader, the path the I’ve given to it is this, keeping the relative position of file from bin folder:</p>
  
  <pre><code>TextReader tr = new StreamReader("Content/files/text/email.txt");
  </code></pre>
  
  <p>But when I’m running it am getting this error over it:</p>
  
  <blockquote>
    <p>Could not find a part of the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\Content\files\text\email.txt.</p>
  </blockquote>
  
  <p>This is very confusing as I don’t know to how to stop it to stop reading the path from the root directory but read it from application root folder.</p>