note 44665 deleted from function.fgets by mgf

From: Date: Wed, 04 Jun 2008 13:52:56 +0000
Subject: note 44665 deleted from function.fgets by mgf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140114@lists.php.net to get a copy of this message
Note Submitter: rstefanowski at wi dot ps dot pl Reason: 1 ---- 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.

« previous php.notes (#140114) next »