How do i unset a row in a textfile where a word in the rows array is "sun" ..
textfile looks something like this:
a word|a word|a word a word|a word|a word a word|sun|a word a word|a word|a word
You will have to read in the file and remove the line and save it again.
HalfaBee
<? $text = file( 'file.txt' ); $fp = fopen( 'file.txt','w' ); foreach( $text as $textout ) if( !strstr( $textout ,'|sun|' ) ) fwrite( $fp,$textout ); ?>
Ok thanks