Is there a way to open a file and read each line?
Read the Manual
http://www.php.net/manual/en/function.file.php