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:sombody@somwhere.com,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:sombody@somwhere.net,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:sombody@somwhere.com,opinion=not at all,comment:your site are cool

from:sombody@somwhere.net,opinion=he loves computer,comment:your site are waste.

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

 

can some one show me the way?

 

thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.