Creating the file before starting downloading