fgets($handle,[$lenghth]) will read up to the optional length or newline or EOF, whichever is first. You now need a file handle instead of file name, so you will have to use fopen($file,'r') for read-only access.
http://www.php.net/manual/en/function.fopen.php