loop through the file line by line explode()ing every line with "TEXt"
in it. Then, if retrning array count is bigger than one, unset() the key
one and break the loop. All read OVERWRITE in the original file.

Sorry, too lazy writing the code here :)


--
Maxim Maletsky
[EMAIL PROTECTED]



"Jeff" <[EMAIL PROTECTED]> wrote... :

> Quick one, how do i read a file for a key word, say "TEXt", and the delete
> the rest of the remaining file?
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to