Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
My bad: while (!feof($fp)) instead of what I wrote earlier. - Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Matt Palermo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 10:59 PM Subject: Re: [PHP] delet

Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
en it again for writing, write the text to the file, and then close it. Hope this helps, Hugh - Original Message - From: "Matt Palermo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 8:53 PM Subject: [PHP] delete lines from text file > Can

Re: [PHP] delete lines from text file

2003-06-05 Thread R'twick Niceorgaw
On Thursday 05 June 2003 11:53 pm, Matt Palermo wrote: > Can anyone help me figure out how to search for a string in a text file, > then delete the whole line of text that it occurs in? > > For example: I have a text file which contains the following. > > //** text.txt ** > Keep this line.

RE: [PHP] delete lines from text file

2003-06-05 Thread Martin Towell
[PHP] delete lines from text file Can anyone help me figure out how to search for a string in a text file, then delete the whole line of text that it occurs in? For example: I have a text file which contains the following. //** text.txt ** Keep this line. Also keep this line. Delete

[PHP] delete lines from text file

2003-06-05 Thread Matt Palermo
Can anyone help me figure out how to search for a string in a text file, then delete the whole line of text that it occurs in? For example: I have a text file which contains the following. //** text.txt ** Keep this line. Also keep this line. Delete this line. Keep this one too. No