Lines Matching refs:file

14  Description: Opens file or URL.
19 Description: Closes an open file pointer
22 /* Test fopen() and fclose(): Opening the file in "wt" mode,
23 checking for the file creation, write & read operations,
24 checking for the file pointer position,
25 checking for the file truncation when trying to open an existing file in "wt" mode,
29 require($file_path."/file.inc");
32 $file = $file_path."/007_variation_私はガラスを食べられます11.tmp";
36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
41 …ll($file_handle) ); //File pointer position after write operation, expected at the end of the file
44 …ile_handle) ); //File pointer position after read operation, expected at the beginning of the file
45 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
56 var_dump( file_exists($file) ); //Check for the existence of file
61 $file = $file_path."/007_variation_私はガラスを食べられます11.tmp";
62 unlink($file);
72 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d