create a new file for downloading files in erlang