On Sunday 22 December 2002 14:18, Noel Wade wrote:
> Okay, attacking my flat-file issues from the other end:
>
> When you use $foo = fgets($fp_file);  it appears that a blank line ends up
> looking exactly like a FALSE ("failed to read") return value...  Is there
> any way to differentiate between an empty-string read (a blank line in a
> flat-file) and a FALSE return from fgets() ??

Your code is probably incorrect. Does the example for fgets() in the manual 
work for you?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
I'm proud to be paying taxes in the United States.  The only thing is
-- I could be just as proud for half the money.
                -- Arthur Godfrey
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to