title: Add a new line using String^ in C++
body: <p>I'm writing a program where you can enter text and output a text file with that text.</p>
  <p>I have this:</p>
  <pre><code>int _tmain(int argc, _TCHAR* argv[])
  {
      String^ fileName = &quot;registry.txt&quot;;
      String^ out;
  
      StreamWriter^ sw = gcnew StreamWriter(fileName);
  
      out = &quot;hi&quot;;
      out = out + &quot;\n how you doing?&quot;;
  
      sw-&gt;WriteLine(out);
  
      sw-&gt;Close();
  }
  </code></pre>
  <p>Basically I want this:</p>
  <pre><code>hi
  how you doing?
  </code></pre>
  <p>But what I get is this:</p>
  <pre><code>hi how you doing?
  </code></pre>
  <p>How can I fix it?</p>