please tell what is the wrong in this code
<p>the contents to be saved in .csv format.</p>

<p>if the file opened in excel </p>

<p>first row should contains a value like</p>

<p>x-axis  1 1 2 2 3 3 4 4 </p>

<p>second row  - no entry</p>

<p>in the third row
Number 100</p>

<p>in the csv format it would like this</p>

<p>x-axis,1,1,2,2,3,3,4,4</p>

<p>Number, 100</p>

<p>The code for this</p>

<p>for(int i= 0, i &lt; 10; i++)
{
  m_StreamWriter.Write(i);
  m_StreamWriter.Write(",");
  m_StreamWriter.Write(i);
}</p>

<p>m_StreamWriter.WriteLine();
m_StreamWriter.WriteLine("Number");</p>

<p>if(Number == 100)
{
m_StreamWriter.Write(,");
m_StreamWriter.Write(100);
}</p>

<p>Problem with code is the output comes in this fashion</p>

<p>x-axis,1,1,2,2,3,3,4,4</p>

<p>Number,
         100</p>

<p>So I wanted to know what is the wrong in this code?</p>
