title: reading the next line in a text file in C#
body: <p>I need to get the next line data from a text file. 
  For example a text file abc contains:</p>
  
  <p>Test Results : Fail<br>
  Error Code : 2000-0333  </p>
  
  <p>I need to search for keyword "Test Results : Fail" and if it exists, the data "2000-0333" should be stored in a variable.</p>
  
  <p>Here's what I have done so far:</p>
  
  <pre><code>   List&lt;string&gt; filecontents = File.ReadAllLines("abc.txt").ToList&lt;string();
     for (int i = 0; i &lt; filecontents.Count; i++)
     {
         if (filecontents[i].Contains("Test Results : Fail"))
         {                          
             //need to get the data here
         }
     }
  </code></pre>
  
  <p>Could I please get solution to this??
  Thank you in advance.</p>