title: Folder in windows form c#
body: <p>This is my first windows form application.</p>
  
  <p>I need to work with folders that I have created in my project and I need to access the Data folder where I put .txt files.</p>
  
  <p>I try :</p>
  
  <pre><code>string fileName = @"Data\TextFile1.txt";
  string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);
  </code></pre>
  
  <p>but i keep receiving this error : </p>
  
  <blockquote>
    <p>impossible find part of path.</p>
  </blockquote>
  
  <p>How can I combine the folder's path with file's name so when I release the project all works well?</p>
  
  <p>This is what I do in an asp.net application:</p>
  
  <pre><code>Path.Combine(HttpRuntime.AppDomainAppPath, "Folder/FileName.txt");
  </code></pre>