04-16-2008, 07:30 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Adding text to a file..
Hey!
I have a file, just a basic .html file.
And I want to open it, scroll down to something that I want to match, and below it add the new data.
So let's say like this:
Code:
customer id: 4
customer mail: gaga@eat.bullshit
---------------
customer id: 5
customer mail: nono@somethings.notright
That's our file.html.
I want to search for "gaga@eat.bullshit" and add below that more content:
Code:
customer id: 4
customer mail: gaga@eat.bullshit
customer name: Tanax
customer location: TalkPHP
---------------
customer id: 5
customer mail: nono@somethings.notright
For example..
How would I accomplish that??
Thanks in advance!
__________________
|
|
|
|