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 : x, xb, xt, x+, x+b, x+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 $filename = dirname(__FILE__)."/fwrite_variation4.tmp"; // this is name of the file
45 echo "Error: failed to fopen() file: $filename!";
52 /* Write the data into the file, verify it by checking the file pointer position, eof position,
54 // write data to the file
61 // close the file, get the size and content of the file.
63 clearstatcache();//clears file status cache
66 // delete the file created
67 delete_file($filename); // delete file with name fwrite_variation4.tmp
76 -- Testing fwrite() with file having content of type numeric --
77 -- Opening file in x --
85 -- Opening file in xb --
93 -- Opening file in xt --
101 -- Opening file in x+ --
109 -- Opening file in x+b --
117 -- Opening file in x+t --
126 -- Testing fwrite() with file having content of type text --
127 -- Opening file in x --
135 -- Opening file in xb --
143 -- Opening file in xt --
151 -- Opening file in x+ --
159 -- Opening file in x+b --
167 -- Opening file in x+t --
176 -- Testing fwrite() with file having content of type text_with_new_line --
177 -- Opening file in x --
185 -- Opening file in xb --
193 -- Opening file in xt --
201 -- Opening file in x+ --
209 -- Opening file in x+b --
217 -- Opening file in x+t --
226 -- Testing fwrite() with file having content of type alphanumeric --
227 -- Opening file in x --
235 -- Opening file in xb --
243 -- Opening file in xt --
251 -- Opening file in x+ --
259 -- Opening file in x+b --
267 -- Opening file in x+t --