title: Path reference for added items c#
body: <p>I have create new textfile in Visual Studio, by adding item in Solution Explorer. Next step is StreamWriter and save data to textfile. However, no data is saved at all. The StreamWriter only save its data to textfile if referencing to full path. </p>
  
  <pre><code>using (StreamWriter sw= new StreamWriter("Textfile.txt", true))
  </code></pre>
  
  <p>What is going on and how can I StreamWrite textfile using Visual Studio added item file name?</p>
  
  <p>Solution Explorer after added item:</p>
  
  <pre><code>Project
   Properties
   References
   App.config
   Textfile.txt
  Program.cs
  </code></pre>
  
  <p>I am able to make a StreamReader and read from the file, but not write to it.</p>