title: Reading a text file separated by dotted lines in C#
body: <p>The text in my application's log file is separated by ---- dotted lines. I am reading that text as one single string.</p>
  <p>The string is like this :</p>
  <pre><code>8/23 17:40:54:761  6948 - AUDIT - Logging: Set ABC
  -----------------------------------------
  08/23 17:40:54:772  6948 - TRANSACTION - Logging: FullFileName:/XYZ/
                             Message:Some Message 
                             Type : Information                          
  ---------------------------------------------
  08/23 17:40:54:844  6948 - INFO - Logging: End of Control_Loaded  
  </code></pre>
  <p>How can I convert this single string into an array or list of strings such that each string has a paragraph between the dotted lines. For example : AUDIT paragraph as string[0], TRANSACTION paragraph as string [1] and so on ....till the end paragraph where there is no dotted line at last.</p>
  <p><strong>This is what I tried :</strong></p>
  <pre><code>     string textFromFile = _streamReader.ReadToEnd();
              
       string[] paragraphs = textFromFile.Split(
       new char[] { '-','-','-','-','-','-'}, StringSplitOptions.RemoveEmptyEntries);
  </code></pre>