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 : a,ab,at,a+,a+b,a+
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 it content of type $file_content_type
42 $filename = dirname(__FILE__)."/fwrite_variation3.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,
56 // append the data to the file, starting from current position of the file pointer
62 /*overwrite data in middle of the file*/
69 /* check the filesize and display file content */
70 // close the file, get the size and content of the file.
72 clearstatcache();//clears file status cache
75 // delete the file created
76 delete_file($filename); // delete file with name fwrite_variation3.tmp
85 -- Testing fwrite() with file having content of type numeric --
86 -- Opening file in a --
98 -- Opening file in ab --
110 -- Opening file in at --
122 -- Opening file in a+ --
134 -- Opening file in a+b --
146 -- Opening file in a+t --
159 -- Testing fwrite() with file having content of type text --
160 -- Opening file in a --
172 -- Opening file in ab --
184 -- Opening file in at --
196 -- Opening file in a+ --
208 -- Opening file in a+b --
220 -- Opening file in a+t --
233 -- Testing fwrite() with file having content of type text_with_new_line --
234 -- Opening file in a --
246 -- Opening file in ab --
258 -- Opening file in at --
270 -- Opening file in a+ --
282 -- Opening file in a+b --
294 -- Opening file in a+t --
307 -- Testing fwrite() with file having content of type alphanumeric --
308 -- Opening file in a --
320 -- Opening file in ab --
332 -- Opening file in at --
344 -- Opening file in a+ --
356 -- Opening file in a+b --
368 -- Opening file in a+t --