Read till the end of a file : feof « File Directory « PHP






Read till the end of a file

 
<?
    $huge_file = fopen("VERY_BIG_FILE.txt", "r");
    while (!feof($huge_file)) {
            print fread($huge_file, 1024);
    }
    fclose($huge_file);
?>
  
  








Related examples in the same category

1.Counting lines in a file
2.Reading lines from a file
3.feof.php