Lines Matching refs:file

7  Description: reads up to length bytes from the file pointer referenced by handle. 
8 Reading stops when up to length bytes have been read, EOF (end of file) is
13 // include the file.inc for common functions for test
14 include ("file.inc");
33 test fread with file opened in "r" and "rb" mode only
40 echo "\n-- Testing fread) with file having data of type ". $file_content_type ." --\n";
43 …$filename = dirname(__FILE__)."/fread_basic1.tmp"; // this is name of the file created by create_f…
45 /* open the file using $files_modes and perform fread() on it */
53 echo "Error: failed to fopen() file: $filename!";
57 /* read file by giving the acutal length, check the length and content by calculating the
60 /* Reading 1024 bytes from file, expecting 1024 bytes */ ;
64 echo "Reading 1024 bytes from file, expecting 1024 bytes ... ";
71 /* read file by giving size more than its size */
75 /*reading 1030 bytes from file, expecting 1024 bytes */ ;
76 echo "Reading 1030 bytes from file, expecting 1024 bytes ... ";
83 // reading 1000 bytes within the file max size
87 /*reading 1000 bytes from file, expecting 1000 bytes */ ;
88 echo "Reading 1000 bytes from file, expecting 1000 bytes ... ";
94 var_dump(fclose($file_handle)); // now close the file
97 // delete the file created
98 delete_file($filename); // delete file with name
105 -- Testing fread) with file having data of type numeric --
109 Reading 1024 bytes from file, expecting 1024 bytes ... OK
116 Reading 1030 bytes from file, expecting 1024 bytes ... OK
123 Reading 1000 bytes from file, expecting 1000 bytes ... OK
131 Reading 1024 bytes from file, expecting 1024 bytes ... OK
138 Reading 1030 bytes from file, expecting 1024 bytes ... OK
145 Reading 1000 bytes from file, expecting 1000 bytes ... OK
153 Reading 1024 bytes from file, expecting 1024 bytes ... OK
160 Reading 1030 bytes from file, expecting 1024 bytes ... OK
167 Reading 1000 bytes from file, expecting 1000 bytes ... OK
175 Reading 1024 bytes from file, expecting 1024 bytes ... OK
182 Reading 1030 bytes from file, expecting 1024 bytes ... OK
189 Reading 1000 bytes from file, expecting 1000 bytes ... OK
197 Reading 1024 bytes from file, expecting 1024 bytes ... OK
204 Reading 1030 bytes from file, expecting 1024 bytes ... OK
211 Reading 1000 bytes from file, expecting 1000 bytes ... OK
219 Reading 1024 bytes from file, expecting 1024 bytes ... OK
226 Reading 1030 bytes from file, expecting 1024 bytes ... OK
233 Reading 1000 bytes from file, expecting 1000 bytes ... OK
239 -- Testing fread) with file having data of type text --
243 Reading 1024 bytes from file, expecting 1024 bytes ... OK
250 Reading 1030 bytes from file, expecting 1024 bytes ... OK
257 Reading 1000 bytes from file, expecting 1000 bytes ... OK
265 Reading 1024 bytes from file, expecting 1024 bytes ... OK
272 Reading 1030 bytes from file, expecting 1024 bytes ... OK
279 Reading 1000 bytes from file, expecting 1000 bytes ... OK
287 Reading 1024 bytes from file, expecting 1024 bytes ... OK
294 Reading 1030 bytes from file, expecting 1024 bytes ... OK
301 Reading 1000 bytes from file, expecting 1000 bytes ... OK
309 Reading 1024 bytes from file, expecting 1024 bytes ... OK
316 Reading 1030 bytes from file, expecting 1024 bytes ... OK
323 Reading 1000 bytes from file, expecting 1000 bytes ... OK
331 Reading 1024 bytes from file, expecting 1024 bytes ... OK
338 Reading 1030 bytes from file, expecting 1024 bytes ... OK
345 Reading 1000 bytes from file, expecting 1000 bytes ... OK
353 Reading 1024 bytes from file, expecting 1024 bytes ... OK
360 Reading 1030 bytes from file, expecting 1024 bytes ... OK
367 Reading 1000 bytes from file, expecting 1000 bytes ... OK
373 -- Testing fread) with file having data of type text_with_new_line --
377 Reading 1024 bytes from file, expecting 1024 bytes ... OK
384 Reading 1030 bytes from file, expecting 1024 bytes ... OK
391 Reading 1000 bytes from file, expecting 1000 bytes ... OK
399 Reading 1024 bytes from file, expecting 1024 bytes ... OK
406 Reading 1030 bytes from file, expecting 1024 bytes ... OK
413 Reading 1000 bytes from file, expecting 1000 bytes ... OK
421 Reading 1024 bytes from file, expecting 1024 bytes ... OK
428 Reading 1030 bytes from file, expecting 1024 bytes ... OK
435 Reading 1000 bytes from file, expecting 1000 bytes ... OK
443 Reading 1024 bytes from file, expecting 1024 bytes ... OK
450 Reading 1030 bytes from file, expecting 1024 bytes ... OK
457 Reading 1000 bytes from file, expecting 1000 bytes ... OK
465 Reading 1024 bytes from file, expecting 1024 bytes ... OK
472 Reading 1030 bytes from file, expecting 1024 bytes ... OK
479 Reading 1000 bytes from file, expecting 1000 bytes ... OK
487 Reading 1024 bytes from file, expecting 1024 bytes ... OK
494 Reading 1030 bytes from file, expecting 1024 bytes ... OK
501 Reading 1000 bytes from file, expecting 1000 bytes ... OK
507 -- Testing fread) with file having data of type alphanumeric --
511 Reading 1024 bytes from file, expecting 1024 bytes ... OK
518 Reading 1030 bytes from file, expecting 1024 bytes ... OK
525 Reading 1000 bytes from file, expecting 1000 bytes ... OK
533 Reading 1024 bytes from file, expecting 1024 bytes ... OK
540 Reading 1030 bytes from file, expecting 1024 bytes ... OK
547 Reading 1000 bytes from file, expecting 1000 bytes ... OK
555 Reading 1024 bytes from file, expecting 1024 bytes ... OK
562 Reading 1030 bytes from file, expecting 1024 bytes ... OK
569 Reading 1000 bytes from file, expecting 1000 bytes ... OK
577 Reading 1024 bytes from file, expecting 1024 bytes ... OK
584 Reading 1030 bytes from file, expecting 1024 bytes ... OK
591 Reading 1000 bytes from file, expecting 1000 bytes ... OK
599 Reading 1024 bytes from file, expecting 1024 bytes ... OK
606 Reading 1030 bytes from file, expecting 1024 bytes ... OK
613 Reading 1000 bytes from file, expecting 1000 bytes ... OK
621 Reading 1024 bytes from file, expecting 1024 bytes ... OK
628 Reading 1030 bytes from file, expecting 1024 bytes ... OK
635 Reading 1000 bytes from file, expecting 1000 bytes ... OK