<?php
$myfile = fopen("class-object.php", "r") or die("Unable to open file!");
// Output one line until end-of-file
while(!feof($myfile)) {
echo fgets($myfile) . "<br>";
// echo fgetc($myfile); to read character by character of the file
}
fclose($myfile);
?>