Lines Matching refs:file

13  Description: fwrite() writes the contents of string to the file stream pointed to by handle.
22 // include the file.inc for Function: function delete_file($filename)
23 include ("file.inc");
26 Test fwrite with file opened in mode : r,rb,rt
35 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
37 /* open the file using $files_modes and perform fwrite() on it */
39 echo "-- Opening file in $file_mode --\n";
41 // create the temp file with content of type $file_content_type
42 $filename = dirname(__FILE__)."/fwrite_variation1.tmp"; // this is name of the file
47 echo "Error: failed to fopen() file: $filename!";
54 /* Write the data into the file, verify it by checking the file pointer position, eof position,
62 // move the file pointer to end of the file and try fwrite()
66 var_dump( ftell($file_handle) ); //check that file pointer points at eof, expected: 1024
69 // ensure that file content/size didn't change.
71 clearstatcache();//clears file status cache
74 delete_file($filename); // delete file with name fwrite_variation1.tmp
84 -- Testing fwrite() with file having content of type numeric --
85 -- Opening file in r --
97 -- Opening file in rb --
109 -- Opening file in rt --
122 -- Testing fwrite() with file having content of type text --
123 -- Opening file in r --
135 -- Opening file in rb --
147 -- Opening file in rt --
160 -- Testing fwrite() with file having content of type text_with_new_line --
161 -- Opening file in r --
173 -- Opening file in rb --
185 -- Opening file in rt --
198 -- Testing fwrite() with file having content of type alphanumeric --
199 -- Opening file in r --
211 -- Opening file in rb --
223 -- Opening file in rt --