Lines Matching refs:file
2 Test fgetc() function : usage variations - read when file pointer at EOF
6 include ("file.inc");
9 echo "-- Testing fgetc() with file whose file pointer is pointing to EOF --\n";
10 // create a file
15 // loop to check the file opened in different read modes
21 // open the file
24 echo "Error: failed to open file $filename! \n";
28 // seek to end of the file and try fgetc()
29 var_dump( fseek($file_handle, 0, SEEK_END) ); // set file pointer to eof
31 var_dump( ftell($file_handle) ); // ensure that file pointer is at eof
33 var_dump( feof($file_handle) ); // ensure that file pointer is at eof
34 var_dump( ftell($file_handle) ); // file pointer position
36 // close the file handle
47 -- Testing fgetc() with file whose file pointer is pointing to EOF --