title: Application throwing my local path as an error on client's machine
body: <p>I am new to C#. Created a C# application which reads from a file and does some processing. I have manually put the files under <code>myProject/bin/Debug/files/</code>  (Note: manually copy-pasted file, not sure if i need to import in any way through the application - using SharpDevelop IDE). My code reads the file through </p>
  
  <pre><code>string query = File.ReadAllText(@"files\myfile.txt");
  </code></pre>
  
  <p>After I built and passed it to a client and it's working fine when they click on <code>myproject.exe</code>, it can locate the file. But when they trigger it using windows task scheduler, the error they get is:</p>
  
  <blockquote>
    <p>System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Windows\system\files\myfile.txt'... at extractor.Program.query() in d:\workspace\test\Program.cs:line 81 (this is my local path, shoud show client's folder path instead)</p>
  </blockquote>
  
  <p>Need help with:</p>
  
  <ol>
  <li>How should i make the exe pick client's path, not my local?</li>
  <li>Is that the right way to add files. Note that I kept it that way because I   want to give client the flexibility to change <code>myfile.txt</code> as necessary, without touching the <strong>.exe</strong> (without the need to build again)</li>
  <li>Is this the right way to locate a file (<code>@"files\myfile.txt"</code>).</li>
  </ol>
  
  <p>Appreciate help. </p>