title: Is there any better/faster way to identify the length of line inside file in C#
body: <p>Is there any better/faster way to identify the length of line inside file in C#, by giving its line number
  I have a console application where I need to find length of each line present in the file where I will be giving the line number in the file</p>
  <pre><code>int lineno = 5
  int linelen = File.ReadLines(@&quot;C\Document\myfile.txt&quot;).skip(lineno).Take(1).First().Length
  </code></pre>