title: Read multiple times lines of the same file Python
body: <p>I'm trying to read lines of some files multiple times in Python.</p>
  
  <p>I'm using this basic way :</p>
  
  <pre><code> with open(name, 'r+') as file:
                  for line in file:
                      # Do Something with line
  </code></pre>
  
  <p>And that's working fine, but if I want to iterate a second time each lines while I'm still with my file open like :</p>
  
  <pre><code> with open(name, 'r+') as file:
                  for line in file:
                      # Do Something with line
                  for line in file:
                      # Do Something with line, second time
  </code></pre>
  
  <p>Then it doesn't work and I need to open, then close, then open again my file to make it work.</p>
  
  <pre><code>with open(name, 'r+') as file:
                      for line in file:
                          # Do Something with line
  with open(name, 'r+') as file:
                      for line in file:
                          # Do Something with line
  </code></pre>
  
  <p>Thanks for answers !</p>