title: format text in richtextbox when using stream reader to read in file c#
body: <p>I have a richtextbox that i am reading a text file into using a streamreader on button click
  I have formatted the text file the way i want it to be displayed within the text file using paragraphs but when i add the text into the richtextbox the formatting disappears. 
  Is there any way i can format the text into separate paragraphs when reading into the textbox from a text file? </p>
  
  <p>Here is my code:  </p>
  
  <pre><code>         using (StreamReader reader = new StreamReader(@"F:\test.txt"))
            {
                bool content = false;
                while ((line = reader.ReadLine()) != null)
              {
  
                  if (line.Contains("[7]"))
                  {
                      content = true;
                      continue;
  
                  }
                  if (content == true)
                  {
  
                      txtContent.AppendText(line.Replace("[7]", "").Replace("[/7]", ""));
  
                  }
                  if (line.Contains("[/7]"))
                  {
                      content = false;
                      break;
                  }
  
  
              }
  
  
          }
  </code></pre>
  
  <p>The [7] and [/7] refer to a tag i have added into my textfile so that the reader only reads inbetween these tags and displays only that chosen text inbetween </p>
  
  <p>Thanks for your help </p>