title: Pulling Times and value in the 4th Column in a text file
body: <p>I am trying to develop a program that reads HRM files. The textfile looks like this:</p>
  
  <pre><code>[IntTimes]
  00:09:59.0  117 91  127 153
  0   0   0   124 41  309
  0   0   0   0   0
  0   2181    68  0   0   0
  0   0   0   0   0   0
  00:10:00.0  115 91  127 153
  0   0   0   119 0   309
  0   0   0   0   0
  33554432    2184    0   0   0   0
  500 0   0   0   0   0
  00:20:10.0  173 109 161 177
  0   0   0   112 62  307
  0   0   0   0   0
  0   3461    22  0   0   0
  0   0   0   0   0   0
  00:25:02.0  119 111 126 172
  0   0   0   190 54  308
  0   0   0   0   0
  0   764 133 0   0   0
  0   0   0   0   0   0
  00:35:16.0  174 119 167 179
  0   0   0   121 52  309
  0   0   0   0   0
  0   3500    70  0   0   0
  0   0   0   0   0   0
  00:50:00.0  134 109 153 179     
  0   0   0   178 0   310
  0   0   0   0   0
  33554432    10840   0   0   0   0
  500 0   0   0   0   0
  01:00:00.0  150 112 139 175
  0   0   0   66  0   312
  0   0   0   0   0
  33554432    1741    0   0   0   0
  500 0   0   0   0   0
  01:06:18.9  108 105 139 177
  0   0   0   64  123 313
  0   0   0   0   0
  0   5668    0   80  0   0
  0   0   0   0   0   0
  </code></pre>
  
  <p>I am wanting to collect all of the times and store them in a list or array that I will then use to plot onto ZedGraph. I also need to collect the 4th digit along on the same line as each time.</p>
  
  <p>For example the first line underneath <code>[IntTimes]</code> I want to collect '<code>00:09:59.0</code>', store it, then collect <code>127</code> and store it. Same with the row for <code>00:10:00.0</code> and so on until there aren't times left.</p>
  
  <p>I have developed part of the code to look for the values between the square brackets, as below, using a regex of <code>@"\[(.*?)\]"</code>:      </p>
  
  <pre><code>  if (squareBrackets.Match(line).Success)
          {
              titles.Add(line);
              if (textAfterTitles.Match(line).Success)
              {
                  textaftertitles.Add(line);
  
              }
          }
  </code></pre>
  
  <p>Sounds a bit long winded but I didn't really know what to search to achieve this so thought this is the best place. </p>
  
  <p>Thanks</p>