fgets() question?

From: Date: Sun, 22 Dec 2002 06:18:56 +0000
Subject: fgets() question?
Groups: php.general 
Request: Send a blank email to php-general+get-129102@lists.php.net to get a copy of this message
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() ?? Thanks a bunch, --Noel

« previous php.general (#129102) next »