Re: File handling
| From: | Justin French | Date: | Fri, 29 Nov 2002 04:28:34 +0000 |
| Subject: | Re: File handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126448@lists.php.net to get a copy of this message | ||
> Quick one, how do i read a file for a key word, say "TEXt", and the delete
> the rest of the remaining file?
Do you mean:
a) how do i make sure a word (eg "foo") is in a file, and if it is, delete
all contents of the file except the word "foo" OR
b) how do i search a file for the word "foo", and delete everything in the
file AFTER the word "foo"
??
Justin French
--------------------
http://Indent.com.au
Web Development &
Graphic Design
--------------------