Re: parse text file
| From: | Benjamin Adams | Date: | Mon, 24 Jul 2006 00:42:14 +0000 |
| Subject: | Re: parse text file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239715@lists.php.net to get a copy of this message | ||
Thanks, fgets works great didn't know the function before.
On Mon, 2006-07-24 at 01:56 +0530, Sameer N Ingole wrote:
> Joe Wollard wrote:
> > Benjamin,
> >
> > Use the file() function, it will read a file then return each line as
> > a new element in an array.
> > http://php.net/file
> And if file is big (biiiiiiig) then you want
> http://php.net/fgets
>
> --
> Sameer N. Ingole
> http://weblogic.noroot.org/
> ---
> Better to light one candle than to curse the darkness.
>