title: Read line x of string?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11491835/get-nth-line-of-string-in-python">get nth line of string in python</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to get a specified line from a multiline string in Python? For example:</p>
  
  <pre><code>&gt;&gt;&gt; someString = 'Hello\nthere\npeople\nof\nEarth'
  &gt;&gt;&gt; aNewString = someString.line(1)
  &gt;&gt;&gt; print aNewString
  there
  </code></pre>
  
  <p>I'd like to make a simple "interpreter" style script, looping through every line of the file it's fed.</p>