Download and write to single file