Reading url from DUO and writing to file