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