The file(); function will put the contents of a file into an array. Each line of the file is an element of the array.
So, you could do something like this to read and output a file:
<?php
$content = file('myfile.php');
foreach ($content as $i)
{
echo $i;
}
?>