write urls to a file