<?php $file = fopen("notas.txt", "r") or exit("Unable to open file!"); while(!feof($file)){ ?> <p><?=fgets($file);?></p> <?php } fclose($file); ?>