title: Read a file of length n in logn time
body: <p>Doing any(<em>read</em>/<em>write</em>) operations on the <strong>FILE</strong> in <em>any</em> programming language, the exact location of the file should be navigated and then it should be handled with <em>read</em>/<em>write</em> mode. Consider a file of <strong>N</strong> lines size, which requires a loop to read each line resulting the loop repeating for <strong>N</strong> times. And the complexity in reading the file turns out to be <strong>O(N)</strong>.</p>
  
  <p>Is there any algorithm to read the file of 'N' lines in <strong>log(N)</strong> time.? </p>