note 44665 added to function.fgets

From: Date: Thu, 12 Aug 2004 16:03:19 +0000
Subject: note 44665 added to function.fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-74541@lists.php.net to get a copy of this message
Take note that fgets() reads 'whole lines'. This means that if a file pointer is in the middle of the line (eg. after fscanf()), fgets() will read the following line, not the remaining part of the currnet line. You could expect it would read until the end of the current line, but it doesn't. It skips to the next full line. ---- Manual Page -- http://www.php.net/manual/en/function.fgets.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44665 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44665&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44665&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74541) next »