Hi im doing a basic script to parse a text file
I want to look for a particular set of words. When i find the word then record the lines until there is a line that is blank
for line in logfile:
for word in line.split():
if word in KEYWORDS:
print word
while line != '\n':
print line
#Move to next line
Any help would be greatly appreciated