Write urls to file