Possible Duplicate:
Delete Chars in Python
I want to know how to delete strings after a keyword in python
I will get lines in a txt file
What method could I use to do this.
For example:
"I have a book to read."
I want to delete all words after "book".