title: Read file Again Python
body: <p>I would like to read a file again and again when it arrives at the end.</p>
  
  <p>The file is only numbers separate by comma.</p>
  
  <p>I use python and I read on the doc that file.seek(0) can be use for this but doesn't work for me.</p>
  
  <p>This is my script:</p>
  
  <pre><code>self.users = []
  self.index = -1
  infile = open(filename, "r")
  for line in infile.readlines():
      if line != None:
         self.users.append(String.split((line),','))
      else:
         infile.seek(0)     
         infile.read()
  infile.close()
  self.index= self._index +1 
  return self.users[self.index]
  </code></pre>
  
  <p>Thank you for your help</p>