Re: File handling

From: Date: Fri, 29 Nov 2002 15:58:44 +0000
Subject: Re: File handling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126484@lists.php.net to get a copy of this message
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 maxim@php.net "Jeff" <jringrose@atlasalu.ie> 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 >

« previous php.general (#126484) next »