Reading from .txt file skips "\n" character
<p>So I am trying to read from a text document and use all the text as one string.</p>

<p>My text document contains the following line:</p>

<blockquote>
  <p>000\n010\n000</p>
</blockquote>

<p>I use this to read from the file:</p>

<pre><code>StreamReader reader = new StreamReader("map.txt");
string mapString = reader.ReadToEnd();
</code></pre>

<p>I then use the read line to generate a map in Monogame. I run in to a problem though, which breaks my game. What I think happens, is that the reader reads:</p>

<blockquote>
  <p>000\n010\n000</p>
</blockquote>

<p>as</p>

<blockquote>
  <p>000010000</p>
</blockquote>

<p>since it works when I just set</p>

<pre><code>string mapString = "000\n010\n000";
</code></pre>

<p>Does anyone know a solution / had the same problem?</p>