title: Base Directory - Illegal characters in path
body: <p>I'm having problems with a line where the base directory (the location of the .exe itself) is found, and a line from a text file within is read.</p>
  
  <p>It's throwing up the 'illegal characters in path' error for this line in the code:</p>
  
  <pre><code>StreamReader sr = new StreamReader(File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "\Parameters.txt"));
  </code></pre>
  
  <p>It may be as a result of me formatting the arguments  of <code>StreamReader()</code> wrong, (probably <code>AppDomain.CurrentDomain.BaseDirectory</code>) but I can't be sure as there's not much other material about appdomain out there.</p>
  
  <p>Any help would be appreciated.</p>