output a list of all visited URLs, in the order they are visited, into afile.