a new file # if filename not specified use the current time (to avoid name conflicts)