title: C# Adding a comma at the end of each line after reading the file with StreamReader
body: <p>I'm using <code>StramReader</code> to read a <code>.txt</code> file and using the <code>string.Replace</code> to do some formatting.</p>
  <p>So far the output in to the <code>Rixhtextbox</code> is what I want, but now I need to add a comma at the end of every line. what would be the best way to accomplish this?</p>
  <pre><code>using (StreamReader reader = new StreamReader(fileStream))
  {
       var fileContent = string.empty;                   
       fileContent = reader.ReadToEnd();
       richTextBox2.Text = fileContent;
  
       // message to tell user that the file was loaded successfully
       MessageBox.Show(&quot; File Loaded Succesfully&quot;);
  
       // file formatting
       var format1 = fileContent.Replace(&quot;     08    &quot;, &quot;,8,&quot;);
       var format2 = format1.Replace(&quot;     07    &quot;, &quot;,7,&quot;);
       var formatF = format2.Remove(0,62);
       string formatF = format9.Replace(&quot;    &quot;, &quot; &quot;);
  
       richTextBox1.Text = formatF;
  }
  </code></pre>