Re: parsing question
| From: | Andrian Pervazov | Date: | Wed, 30 Aug 2000 01:09:19 +0000 |
| Subject: | Re: parsing question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14277@lists.php.net to get a copy of this message | ||
Sonia Tsui wrote:
>
> Say I have file "info.txt":
>
> start_index 5
> end_index 15
>
> ------------------------------------------------------------------------
> How do I read file line by line. I read the Filesystem functions and it
> doesn't see to have this function available. One option I can think of is
> use to fread( ) to read the whole file and then do the regular expression
> parse to get the two index. Is there a better way to do this?
>
> ---Sonia
The file() function will do exactly this. Check it out!
Andrian