ohagan
Electrical
- Sep 20, 2006
- 18
Hi,
I am trying to read a file and extract only a section of it, for example if the read file was the text below I would only want to extract the text between "test1" and end_test", which would be "this is a test to see if i can get these words from this file." My goal is to take only the useful portion and write it to another file for use later on in my program. Any ideas on how to actually get only the section of the file that I want?
Thanks.
-----------------------------------------------------------
brewvouibreouvibuorebvourebvoubreouvberoubvorebvorebvorebvouibreobvreoabvoubrewbuovbroeubvoarewbv';barwe'ovb test1 this is a test to see if i can get these words from this file end_test poinfwoiprnvioprwevioerovbierovoewrnvpiwnrviopnreovinerov
-----------------------------------------------------------
I am trying to read a file and extract only a section of it, for example if the read file was the text below I would only want to extract the text between "test1" and end_test", which would be "this is a test to see if i can get these words from this file." My goal is to take only the useful portion and write it to another file for use later on in my program. Any ideas on how to actually get only the section of the file that I want?
Thanks.
-----------------------------------------------------------
brewvouibreouvibuorebvourebvoubreouvberoubvorebvorebvorebvouibreobvreoabvoubrewbuovbroeubvoarewbv';barwe'ovb test1 this is a test to see if i can get these words from this file end_test poinfwoiprnvioprwevioerovbierovoewrnvpiwnrviopnreovinerov
-----------------------------------------------------------