Jump to content

Grab data from text file after ">>" char


chole

Recommended Posts

I have a text file that contain something like this :

 

question.txt

 

------------------------

12/10/2010

Quest : Was a web designer really care about your web security other than thinking so hard to design your web just based on how the web will looks like?.

>>from:[email protected],opinion=not at all,comment:your site are cool

11/10/2010

Quest : Was a web designer really love his girl friend in other side they r almost got no time dating with her?

>>from:[email protected],opinion=he loves computer,comment:your site are waste.

-------------------------

 

All i need to do is, grabing all informations after the char ">>" and write it to another text file name "output.txt" that will contain :

 

output.txt

---------------------

from:[email protected],opinion=not at all,comment:your site are cool

from:[email protected],opinion=he loves computer,comment:your site are waste.

---------------------

 

can some one show me the way?

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/217173-grab-data-from-text-file-after-char/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.