title: StreamReader complains that file does not exist, but it does
body: <p>I have an application that is localized for use across Europe.</p>
  
  <p>I have a menu option that loads a file from disk. </p>
  
  <p>This operation works fine on my dev machine but does not work on the virtual machine I use to test other operating systems _ e.g French, Spanish etc.</p>
  
  <p>A FileNotFoundException is generated when the StreamReader tries to open the file.</p>
  
  <p>It says "'Could not find the file C:\Program Files\MyCompany\MyTool\bin\Files\debug.txt'"</p>
  
  <p>Thing is, the file does exist, at the correct location and with the correct filename.</p>
  
  <p>The directory names on the target (French) operating system are the same as the dev machine.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>string ourPath =   System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
  
             try
          {
              System.IO.StreamReader sr = System.IO.File.OpenText(ourPath + @"\bin\Files\debug.txt");
              string input = null;
              while ((input = sr.ReadLine()) != null)
              {
                  m_text.Append(input);
              }
              sr.Close();
          }
          catch (System.IO.FileNotFoundException)
          {
              MessageBox.Show("LoadDebugOptions: File Not Found: " + ex.Message);
          }
  </code></pre>