http://php.net/manual/en/function.file-get-contents.php
http://php.net/manual/en/function.explode.php
$array = explode("\n", file_get_contents($filename));
This wont actually read it line by line, but it will get you an array which can be used line by line. There are a number of alternatives.