title: Write a text file to a sub-folder
body: <p>I am trying to write out a text file to: <code>C:\Test folder\output\</code>, but without putting <code>C:\</code> in.</p>
  
  <p>i.e.</p>
  
  <p>This is what I have at the moment, which currently works, but has the <code>C:\</code> in the beginning.</p>
  
  <pre><code>StreamWriter sw = new StreamWriter(@"C:\Test folder\output\test.txt");
  </code></pre>
  
  <p>I really want to write the file to the output folder, but with out having to have <code>C:\</code> in the front.</p>
  
  <p>I have tried the following, but my program just hangs (doesn't write the file out):</p>
  
  <pre><code>(@"\\Test folder\output\test.txt");
  
  (@".\Test folder\output\test.txt");
  
  ("//Test folder//output//test.txt");
  
  ("./Test folder//output//test.txt");
  </code></pre>
  
  <p>Is there anyway I could do this?</p>
  
  <p>Thanks.</p>