[snip]
1%0A2%0A3%0A4%0A5%0A6%0A7%0A8%0A
No extra newlines that I could see.
>>
>>1\n
>>2\n
>>3\n
>>4\n
>>5\n
>>6\n
>>7\n
>>8\n
>>
>>I create this PHP program and run it:
>>
>><?php
>>$fd = fopen ("test","r");
>>while (!feof ($fd)) {
>> $buffer = fgets($fd, 4096);
>> echo "buffer is $buffer";
>>}
>>fclose ($fd);
>>?>
The only way that I can see to do this is to test the output before printing
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
if($buffer > 0){
echo "buffer is $buffer";
}
}
Or I suppose you could say if(!$buffer), will make for less code
HTH!
Jay
***********************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* San Antonio Area PHP Developers Group *
* Interested? Contact [EMAIL PROTECTED] *
***********************************************************
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php