title: How to append line at end of file using File.Append in C#
body: <p>I am creating a txt file using c# and writing multiple lines. The problem is that line is getting appended at top and not at end.</p>
  
  <p>Any info on how to achieve this. 
  This is below code</p>
  
  <pre><code>    private static void WriteReleaseSql( string sqlStatement)
      {
          string ReleaseoutputFilePath = ConfigurationManager.AppSettings["ReleaseOutputFilePath"];
  
          using (FileStream fs = new FileStream(ReleaseoutputFilePath, FileMode.Append, FileAccess.Write))
          using (StreamWriter sw = new StreamWriter(fs))
          {
              sw.WriteLine(sqlStatement);
          }
      }
  </code></pre>