• That works on files that have already predefined name.

    But what if I want to create the file name from current date and that file name does not exist yet?