title: CRLF behind the last line of a text file
body: <p>How can I avoid CRLF character behind the last line in a text file, please?</p>
  
  <blockquote>
    <p>Header<strong>LF</strong><br>
        Start_one<strong>LF</strong><br>
        Start_two<strong>LF</strong><br>
        Start_three<strong>CRLF</strong></p>
  </blockquote>
  
  <p>The source:</p>
  
  <pre><code> string s = "\nStart_";
   StringBuilder txt = new StringBuilder();
   txt.Append("Header");
  
   StringBuilder row = new StringBuilder();
  
   row.Append(s + "one");
   txt.Append(row);
   row.Clear();
   row.Append(s + "two");
   txt.Append(row);
   row.Clear();
   row.Append(s + "three");
   txt.Append(row);
   row.Clear();
  
  
   using (StreamWriter sw = File.CreateText(@"C:\Users\***\test.txt"))
   {       
       sw.WriteLine(txt.ToString());
   }
  </code></pre>