When it finally reaches the end of the file the.
In this instance I used a while command to cycle through the text file till it reaches the end. Rinse and repeat- Move to the next page in your database and do the same thing. When it finally reaches the end of the file the script is done and it can assume every crawlable page on the site has been accounted for..
Original text search at: www.bluehatseo.com/2006/11/