write url to file