how to extract data from a file
Posted: Fri Oct 05, 2012 11:32 am
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
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