file fonksiyonu kullanabilirsin:

$icerikler=file("dosya.txt");
foreach($icerikler as $icerik){
echo $icerik;
}