Re: how to read text file one line at a time

From: Date: Tue, 19 Nov 2002 19:33:40 +0000
Subject: Re: how to read text file one line at a time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125141@lists.php.net to get a copy of this message
There are a couple of ways: - If the file is small enough, I suppose you could use the http://ca.php.net/manual/en/function.file.php file function, which loads the file in array (one element per line). - If the file is bigger, you can use the normal fopen() functionality and then use http://ca.php.net/manual/en/function.fgets.php fgets(). Hope this helps! -- ------------ php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com!

« previous php.general (#125141) next »