title: What is the difference between File.ReadLines() and File.ReadAllLines()?
body: <p>I have query regarding File.ReadLines() and File.ReadAllLines().what is difference between 
  them. i have text file where it contains data in row-wise.<code>File.ReadAllLines()</code> return array and using <code>File.ReadLines().ToArray();</code> will also i can get same result.So is there any performance difference related to these methods?</p>
  
  <pre><code>string[] lines = File.ReadLines("C:\\mytxt.txt").ToArray();
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>string[] lines = File.ReadAllLines("C:\\mytxt.txt");
  </code></pre>