Re: [Tutor] Scanning a file for specific text and copying it to a new file

2010-12-02 Thread Steven D'Aprano
Ben Ganzfried wrote: I'm trying to build a program that reads in a file and copies specific sections to a new file. More specifically, every time the words "summary on" are in the original file, I want to copy the following text to the new file until I get to the words "summary off". My questio

Re: [Tutor] Scanning a file for specific text and copying it to a new file

2010-12-02 Thread Emile van Sebille
On 12/2/2010 10:27 AM Ben Ganzfried said... I'm trying to build a program that reads in a file and copies specific sections to a new file. More specifically, every time the words "summary on" are in the original file, I want to copy the following text to the new file until I get to the words "su

[Tutor] Scanning a file for specific text and copying it to a new file

2010-12-02 Thread Ben Ganzfried
I'm trying to build a program that reads in a file and copies specific sections to a new file. More specifically, every time the words "summary on" are in the original file, I want to copy the following text to the new file until I get to the words "summary off". My questions are the following: 1