StreamWriter: How to add a new line?
<p>I want to write a string into a file. My problem is that I cannot add new lines into the file.</p>

<pre><code>using (System.IO.StreamWriter writer = new System.IO.StreamWriter(String.Format("{0}.txt", svDialog.FileName)))
            {
                writer.Write(String.Format("{0}\n\n{1}", this.currentRealWorldObj.Title, this.currentRealWorldObj.Description));
            }
</code></pre>

<p>As you can see I am adding to 2 new lines ("\n\n") in the String.Format method. But when I open the lines are not added. How they can be added?</p>