Lines Matching refs:file
13 // include the file.inc for Function: function delete_file($filename)
14 include ("file.inc");
17 Test fwrite with file opened in mode : a,ab,at,a+,a+b,a+t
26 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
28 /* open the file using $files_modes and perform fwrite() on it */
30 echo "-- Opening file in $file_mode --\n";
32 // create temp file and fill it content of type $file_content_type
33 $filename = __DIR__."/fwrite_variation3.tmp"; // this is name of the file
38 echo "Error: failed to fopen() file: $filename!";
45 /* Write the data into the file, verify it by checking the file pointer position, eof position,
48 // append the data to the file, starting from current position of the file pointer
54 /*overwrite data in middle of the file*/
61 /* check the filesize and display file content */
62 // close the file, get the size and content of the file.
64 clearstatcache();//clears file status cache
67 // delete the file created
68 delete_file($filename); // delete file with name fwrite_variation3.tmp
77 -- Testing fwrite() with file having content of type numeric --
78 -- Opening file in a --
90 -- Opening file in ab --
102 -- Opening file in at --
114 -- Opening file in a+ --
126 -- Opening file in a+b --
138 -- Opening file in a+t --
151 -- Testing fwrite() with file having content of type text --
152 -- Opening file in a --
164 -- Opening file in ab --
176 -- Opening file in at --
188 -- Opening file in a+ --
200 -- Opening file in a+b --
212 -- Opening file in a+t --
225 -- Testing fwrite() with file having content of type text_with_new_line --
226 -- Opening file in a --
238 -- Opening file in ab --
250 -- Opening file in at --
262 -- Opening file in a+ --
274 -- Opening file in a+b --
286 -- Opening file in a+t --
299 -- Testing fwrite() with file having content of type alphanumeric --
300 -- Opening file in a --
312 -- Opening file in ab --
324 -- Opening file in at --
336 -- Opening file in a+ --
348 -- Opening file in a+b --
360 -- Opening file in a+t --