I'm trying to check to see if a file exists with a filename something like dkout-YYYY-mm-dd.txt where the YYYY would be the year in 4 digits, mm the month in two digits, and dd be the day in two digits. I really don't have a clue as to how to format a file with a date. This program will run everyday so it will need to check for the current date inside the filename each day. Can anybody help me with this? Thanks in advance.