Thank you Ed,

I had another question, from your example if i have multiple *.txt files(Input files) and i need to do the same (extract data between SELECT and FROM ) from the different file and push the data to different output files , could we be able to do that?