note 34687 added to function.fgetc
| From: | martinnitram at excite dot com | Date: | Mon, 04 Aug 2003 06:20:17 +0000 |
| Subject: | note 34687 added to function.fgetc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53304@lists.php.net to get a copy of this message | ||
i found fgetc will terminate when read '0', that is, if the text file had this:
1234567890987654321
and then use fgetc to read it like
$HANDLER = fopen("TEXT_FILE",'r') ;
while ( ($char = fgetc($HANDLER) ){
print $char;
}
it can only print out 123456789
tried both win32 (php 4.2.3) and linux(php 3.x)
am i some wrong?
----
Manual Page -- http://www.php.net/manual/en/function.fgetc.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34687
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34687&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34687&report=yes