demo_func_filesystem_fgets2.php:
<!DOCTYPE html> <html> <body> <?php $file = fopen("test.txt","r"); while(! feof($file)) { echo fgets($file). "<br />"; } fclose($file); ?> </body> </html>