title: Correct File Path within C# Console Application
body: <p>Can someone please tell me how I can get the correct file path for the file data.xml? Here is where the file sits:</p>
  
  <p><img src="https://i.stack.imgur.com/Imsxt.jpg" alt="enter image description here"></p>
  
  <p>Here is my C# code that is checking to see if the file exists for the supplied path:</p>
  
  <pre><code>public class Parser
  {
      static void Main(string[] args)
      {
          Console.WriteLine(File.Exists("App_Data/data.xml"));
          Console.Read();
      }
  }
  </code></pre>
  
  <p>I keep getting False, meaning such a file does not exist. So file paths I've tried so far include:</p>
  
  <pre><code>"~/App_Data/data.xml"
  "/App_Data/data.xml"
  "App_Data/data.xml"
  </code></pre>
  
  <p>If this was a Web application, I would know what to do, by using the HttpContext and getting at the file. But since this is a Console application, I don't know.</p>
  
  <p>On a related note, what is the difference between a Console application and an Executable application? Am I correct that there is no difference, since a Console App can be an Executable app if it has a Main method?</p>
  
  <p>Thanks</p>