Page 1 of 1

how to extract data from a file

Posted: Fri Oct 05, 2012 11:32 am
by Tokunbo
hello sirs,

this is what I would like to do:

I have a filename.extension which I would like to extract some data from. I need to delete the first couple of lines and the last couple of lines - all jargon data, but the info I need to extract is encapsulated between these quoted texts "<start>" and "<stop>".

So Im trying to figure out a way to code such that I say: delete everything before "<start>" and everything after "<stop>" and then save the file as new filename.abc

regards
toks

Re: how to extract data from a file

Posted: Fri Oct 05, 2012 12:57 pm
by requinix
Do you have an example? There might be an easier way.