title: Reading the 2 last line from a text
body: <p>i am new to <a href="/questions/tagged/c%23" class="post-tag" title="show questions tagged &#39;c#&#39;" rel="tag">c#</a> and i am working on an app that display the time difference from two date on the last two line on a text file.</p>
  
  <p>I want to read the before last line from a file text, i already know how to read the last line but i need to read the before last.</p>
  
  <p>This is my code :</p>
  
  <pre><code>var lastLine = File.ReadAllLines("C:\\test.log").Last();
                  richTextBox1.Text = lastLine.ToString();
  </code></pre>