title: Why does StreamWriter overwrite my file?
body: <p>I'm using <code>SteamWriter</code> to write something to a text file, however its overwriting the old data with the new data.
  How can I make sure it will just add the new data instead of overwriting the old data?<br>
  my code:</p>
  
  <pre><code>class Program
  {
      const string filename = @"C:\log.txt";
      static void Main()
      {
          FileStream fs;
          fs = new FileStream(filename, FileMode.Create, FileAccess.Write);
          StreamWriter writer = new StreamWriter(fs);
          writer.WriteLine("test");
  
          writer.Close();
          fs.Close();
      }
  }
  </code></pre>