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@xxxxxxxxxxxxxx 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php