title: Read file until specific line in python
body: <p>I have one text file. I am parsing some data using regex. So open the file and read it and the parse it. But I don't want to read and parse data after some specific line in that text file. For example</p>
  <pre><code>file start here..
  some data...
  SPECIFIC LINE
  some data....
  </code></pre>
  <p>Now I don't want to read file after SPECIFIC LINE...
  Is there any way to stop reading when that line reaches?</p>