title: Re-read a file from start after the program finishes reading it python
body: <p>I have a CSV file which I am reading in python. The code is something along these lines:</p>
  
  <pre><code>with open("total.csv", 'rb') as input1:
      reader = csv.reader(input1, delimiter=",")
      for row in reader:
          # Read the CSV row by row.
  </code></pre>
  
  <p>Actually this file contains numerous URLs that I wish to check for updates and I want my program to start from the beginning of the file once I complete the list. If I want to stop it I will manually kill the process. However, I don't know what should I do after reading the last row so that the program should start from the beginning of the file. I want to keep on reading the file in a loop so that the file is read unless I manually terminate the process running my script. Can anyone tell how do I do that? Thanks</p>