feof.php : feof « File Directory « PHP






feof.php

 
<?php
   $fh = fopen("/home/www/data/users.txt", "rt");
   while (!feof($fh)) echo fgets($fh);
   fclose($fh);
?>
  
  








Related examples in the same category

1.Counting lines in a file
2.Reading lines from a file
3.Read till the end of a file