title: C# NewLine inside File.AppendAllText
body: <p>Writing a simple log for a program I'm doing and I'm getting troubles with FileAppendText()</p>
  
  <p>I have this line to output various messages to the log:</p>
  
  <pre><code>File.AppendAllText( filePath, string.Format( "{0} {1}{2}", DateTime.Now, message, Environment.NewLine ) );
  </code></pre>
  
  <p>Problem with this is when I try to use it with a string like this </p>
  
  <pre><code>"This is my first line, \r\n this is my second line \r\n and this is my final line!"
  </code></pre>
  
  <p>It will just give this result </p>
  
  <pre><code>This is my first line, this is my second line and this is my final line!
  </code></pre>
  
  <p>when it should be </p>
  
  <pre><code>This is my first line, 
  this is my second line 
  and this is my final line!
  </code></pre>
  
  <p>Is there a way to fix this or do I have to do some dirty fixes?</p>