title: Reading lines after specific string in a text file then storing data in lists
body: <p>I have a program that reads texts files and I'm wanting it to collect data after a certain title in the text file, in this case <code>[HRData]</code>. Once the streamreader reaches <code>[HRData]</code> I want it to read every line after that and store each line in a list, but allowing me to get access to the seperate numbers.</p>
  
  <p>The text file is like so:</p>
  
  <pre><code>[HRZones]
  190
  175
  162
  152
  143
  133
  0
  0
  0
  0
  0
  
  [SwapTimes]
  
  [Trip]
  250
  0
  3978
  309
  313
  229
  504
  651
  //n header 
  [HRData]
  91  154 70  309 83  6451
  91  154 70  309 83  6451
  92  160 75  309 87  5687
  94  173 80  309 87  5687
  96  187 87  309 95  4662
  100 190 93  309 123 4407
  101 192 97  309 141 4915
  103 191 98  309 145 5429
  </code></pre>
  
  <p>So referring to the text file, I want it to store the first line after [HRData] and allow me access each variable, for example <code>91</code> being <code>[0]</code>.</p>
  
  <p>I have code that already stores to a list if the word matches the regex, but I do not know how to code it to read after a specific string like [HRData].</p>
  
  <pre><code>if (squareBrackets.Match(line).Success) {
   titles.Add(line);
   if (textAfterTitles.Match(line).Success) {
    textaftertitles.Add(line);
  
   }
  }
  </code></pre>
  
  <p>This is my attempt so far:</p>
  
  <pre><code>if (line.Contains("[HRData]")) {
   inttimes = true;
   MessageBox.Show("HRDATA Found");
   if (inttimes == true) {
    while (null != (line = streamReader.ReadLine())) {
     //ADD LINE AND BREAK UP INTO PARTS S
    }
   }
  }
  </code></pre>