title: Append lines to a file using a StreamWriter
body: <p>I want to append lines to my file. I am using a StreamWriter:</p>
  
  <pre><code>StreamWriter file2 = new StreamWriter(@"c:\file.txt");
  file2.WriteLine(someString);
  file2.Close();
  </code></pre>
  
  <p>The output of my file should be several strings below each other, but I have only one row, which is overwritten every time I run this code.</p>
  
  <p>Is there some way to let the StreamWriter append to an existing file?</p>