To read a line in middle you first need to determine all line ends before that. And to do that you need to read all the data up to that point, so it kinda defeats the purpose. You could try to use byte-granular binary search I guess... but why not just use grep as it's fast enough?
|