 <p><a href="http://stackoverflow.com/questions/3207219/how-to-list-all-files-of-a-directory-in-python">This</a> will help you to list all the files in the directory. </p> <p>Then for each file, </p> <ol> <li>Iterate thru all the lines</li> <li>See if the current line starts with CONCLUSION:</li> <li>Do a substring on that line to get all the contents after the word CONCLUSION:</li> </ol>