Ciao.
Prova con fgets.
Gestisce una riga di un file come stringa.

php fgets