Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread Jason Wong
On Wednesday 04 June 2003 14:35, poetbox wrote: > Thank you,Mr. Jason Wong,I think what you said is below.If not,tell > me the right way,ok? [snip] > Is there any wrong above?Sorry,it do nothing again. In your original, you had some code which used explode() on the line to extract

Re: Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread poetbox
Jason Wong,您好! Thank you,Mr. Jason Wong,I think what you said is below.If not,tell me the right way,ok? =filename:edit.php===(still have ERRORs)=begin==> "; for($i=0;$i<$num;$i++) { echo "".$news[$i]." DELETE THIS LINE"; if((

Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread Jason Wong
On Wednesday 04 June 2003 08:36, poetbox wrote: > As you know,I'm a newbie in PHP,I tried your way last night,but to my > surprise,it do nothing for any way,it didn't delete any line in the > TXT-file,even the file "outputfile.txt" indeed! Perhaps it because that I > haven't understand your though

Re: Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread poetbox
Jason Wong,您好! As you know,I'm a newbie in PHP,I tried your way last night,but to my surprise,it do nothing for any way,it didn't delete any line in the TXT-file,even the file "outputfile.txt" indeed! Perhaps it because that I haven't understand your thought and absolutely copy your words to th

Re: Re: [PHP] How to delete a line in a TXT-file

2003-06-03 Thread poetbox
Jason Wong,您好! Let me go back to have a try,thank you very much!:) Some people told me to use unset(mixed var [,mixed var [,...]]) to delete it ,but I cannot understand anything about it . === 2003-06-03 16:04:00 :=== >On Tuesday 03 June 2003 11:11, poetbox wrote: > >> I'

Re: [PHP] How to delete a line in a TXT-file

2003-06-03 Thread Jason Wong
On Tuesday 03 June 2003 11:11, poetbox wrote: > I've been having trouble to delete a line from a TXT-file for days. > The content of the text file just like below: > ---begin==> > 00145|test|line1 > 00255|test|line1 > 01143|test|line1 > 00469|test|line1 > 10146|test|lin

[PHP] How to delete a line in a TXT-file

2003-06-03 Thread poetbox
Hi all, I've been having trouble to delete a line from a TXT-file for days. The content of the text file just like below: ---begin==> 00145|test|line1 00255|test|line1 01143|test|line1 00469|test|line1 10146|test|line1 --<==end Every line