Parsing text

2005-12-19 Thread sicvic
I was wondering if theres a way where python can read through the lines of a text file searching for a key phrase then writing that line and all lines following it up to a certain point, such as until it sees a string of "-" Right now I can only have python write just the line

Re: Parsing text

2005-12-20 Thread sicvic
Not homework...not even in school (do any universities even teach classes using python?). Just not a programmer. Anyways I should probably be more clear about what I'm trying to do. Since I cant show the actual output file lets say I had an output file that looked like this: a b Person: J

Re: Parsing text

2005-12-20 Thread sicvic
Thank you everyone!!! I got a lot more information then I expected. You guys got my brain thinking in the right direction and starting to like programming. You've got a great community here. Keep it up. Thanks, Victor -- http://mail.python.org/mailman/listinfo/python-list