title: c# problem with saving to txt and new line in data.txt
body: <p>I have a problem. I have to save figures to txt ( its not important what it means). I would like to have space between numbers.
  When I try to save it without spaces it works good
  This is my code without space</p>
  
  <pre><code>if (x_dolny &gt; x1_sqr &amp;&amp; x_dolny &lt; x2_sqr)
  { 
     using (StreamWriter streamW = new StreamWriter("C:\\Users\\Desktop\\outputdata.txt", true))
     {
        streamW.Write("1");
     }
  }
  else if (y_prawy &lt; y1_sqr &amp;&amp; y_prawy &gt; y2_sqr)
  {
     using (StreamWriter streamW = new StreamWriter("C:\\Users\\Desktop\\outputdata.txt", true))
     {
        streamW.Write("1");
     }
  }
  else if (delta &gt;= 0.0)
  {
     using (StreamWriter streamW = new StreamWriter("C:\\Users\\Desktop\\outputdata.txt", true))
     {
        streamW.Write("2");
     }
  }
  else
  {
      using (StreamWriter streamW = new StreamWriter("C:\\Users\\Desktop\\outputdata.txt", true))
        {
           streamW.Write("0");
        }
  }
  using (StreamWriter streamW = new StreamWriter("C:\\Users\\Desktop\\outputdata.txt", true))
  {
     streamW.WriteLine("New line");
  }
  </code></pre>
  
  <p>And here is a screenshot outputdata.txt
  <a href="https://i.stack.imgur.com/bEHfp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bEHfp.png" alt="screen without spaces"></a></p>
  
  <p>and then I tried to add "\t"
  So now I have </p>
  
  <pre><code>streamW.Write("1 \t");
  streamW.Write("2 \t");
  streamW.Write("0 \t");
  </code></pre>
  
  <p>but the file looks like this
  <a href="https://i.stack.imgur.com/fURRK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fURRK.png" alt="Code with spaces"></a></p>
  
  <p>I dont understand why it cuts my line and move to the next line...
  Any ideas?</p>