title: No line breaks when using File.WriteAllText(string,string)
body: <p>I noticed that there are no line breaks in the file I'm creating using the code below. In the database, where I also store the text, those are present. </p>
  
  <pre><code>string story = "Critical error occurred after " 
    + elapsed.ToString("hh:mm:ss") 
    + "\n\n" + exception.Message;
  File.WriteAllText(path, story);
  </code></pre>
  
  <p>So after some <a href="https://stackoverflow.com/a/14119047/1525840">short googling</a> I learned that I'm supposed to refer to the new lines using <em>Environment-NewLine</em> rather than the literal <em>\n</em>. So I added that as shown below.</p>
  
  <pre><code>string story = "Critical error occurred after " 
    + elapsed.ToString("hh:mm:ss") 
    + "\n\n" + exception.Message;
    .Replace("\n", Environment.NewLine);
  File.WriteAllText(path, story);
  </code></pre>
  
  <p>Still, no line breaks in the output file. What Am I missing?</p>