File:readLine

From: Date: Thu, 11 Sep 2003 13:56:07 +0000
Subject: File:readLine
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7723@lists.php.net to get a copy of this message
I'm experimenting with the file extention for Pear which has this documentation: /* * Example 1: * $stdin = File::readAll('php://stdin'); * * Example 2: * while ($data = File::read('/blaat/bar')) { * // Code... * } */ Tried both, work fine. But how does the File::readLine work? I need to move through a file line by line to parse it. I can't see any function that moves the file pointer forward. Of course I know the code to do it without PEAR, but what would be the fun in that? Leonie

« previous php.pear.general (#7723) next »