Re: In my attempt to read from a text file...
| From: | CC Zona | Date: | Mon, 12 Mar 2001 20:46:50 +0000 |
| Subject: | Re: In my attempt to read from a text file... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43543@lists.php.net to get a copy of this message | ||
In article
<309828428FB7D411A53C00508BB18D261CC6E6@triton.triton-network.com>,
pbenoit@triton-network.com (Peter Benoit) wrote:
> I'd like to search inside the text file for my name, then pull all the info
> from that point till the next name which is Fred.
>
> The text file would be called names.txt
>
>
> So I'm trying to
>
> preg_match("Peter",names.txt,$myname)
>
> then do the same for Fred, and grab all the stuff in between.
>
> Is this the right way to do this?
Nope. (But see the example in my response to your previous post on the
same topic.)
--
CC