want to read specific line by giving my own range
<p>I've been preparing a code for finding some specific lines from text file by giving my range of lines</p>

<pre><code>$file         = new SplFileObject("TRIAL.txt");
$fileIterator = new LimitIterator($file, "40-01-0001", "40-01-0010");

foreach($fileIterator as $line) {
  echo $line, PHP_EOL;
  echo "&lt;br&gt;";
}
</code></pre>

<p>I'm giving this code. Please someone show me the fault in this code. In this code, <code>"40-01-0001"</code>, <code>"40-01-0050"</code> are starting of <code>X</code> line to <code>Y</code> line. And I need to read all lines between the <code>X</code> line to <code>Y</code> line.</p>
