Function to get certain amount of lines from a file?
<p>Was just wondering if there is anything that exists to retrieve a certain amount of lines from a file or should I just go ahead &amp; make an array of it with <code>file</code> &amp; then loop through it until I get the required data?</p>

<p>All I'm trying to do is get the first 11 lines of data from a file (or less if there aren't 11).</p>

<p>Thank You!</p>
