Re: fgets() question?
| From: | Jason Wong | Date: | Sun, 22 Dec 2002 08:26:52 +0000 |
| Subject: | Re: fgets() question? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129107@lists.php.net to get a copy of this message | ||
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
*/