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+,r+b,r+t
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 temp file and fill the data of type $file_content_type
42 $filename = dirname(__FILE__)."/fwrite_variation2.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,
57 /*overwrite first 400 bytes in the file*/
63 /*overwrite data in middle of the file*/
70 /* write at the end of the file */
78 /* display the file content, check the file size */
80 clearstatcache();//clears file status cache
83 delete_file($filename); // delete file with name fwrite_variation2.tmp
93 -- Testing fwrite() with file having content of type numeric --
94 -- Opening file in r+ --
111 -- Opening file in r+b --
128 -- Opening file in r+t --
146 -- Testing fwrite() with file having content of type text --
147 -- Opening file in r+ --
164 -- Opening file in r+b --
181 -- Opening file in r+t --
199 -- Testing fwrite() with file having content of type text_with_new_line --
200 -- Opening file in r+ --
217 -- Opening file in r+b --
234 -- Opening file in r+t --
252 -- Testing fwrite() with file having content of type alphanumeric --
253 -- Opening file in r+ --
270 -- Opening file in r+b --
287 -- Opening file in r+t --