title: How can I read a file to a string starting at a given word without knowing the line number?
body: <p>I have test results in a log file that are formatted like:</p>
  
  <p>useless info</p>
  
  <p>useless info</p>
  
  <p>======================</p>
  
  <p>useful info</p>
  
  <p>useful info</p>
  
  <p>======================</p>
  
  <p>test success</p>
  
  <p>The number of lines in each section can vary, so I want to check for the first appearance of the double equal character '==' and read that line until the end of the file into a string. Currently I'm using the following code to read the whole file into the string.</p>
  
  <pre><code>with open ("Report.txt", "r") as myfile:
      data = myfile.read()
  </code></pre>
  
  <p>Thanks for the help!</p>