RE: [PHP] A problem with fgets()

From: Date: Wed, 04 Jun 2008 14:09:47 +0000
Subject: RE: [PHP] A problem with fgets()
Groups: php.general 
Request: Send a blank email to php-general+get-275001@lists.php.net to get a copy of this message
On 30 May 2008 02:56, Usamah M. Ali advised: > So you're confirming that fgets() doesn't necessarily read a whole > line? This user note existed on the manual's page of fgets() since > 2004 and nobody deleted it or commented about: > > rstefanowski at wi dot ps dot pl > 12-Aug-2004 09:03 > > "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." > > That was my source of confusion. Yes, I agree that that note is complete hogwash, and have just deleted it! Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#275001) next »