I have a java application that writes a file. One of my command line parameters is the name of the file. I would like to set a run configuration in eclipse to name the file with the date and time, something like this:
MyFile_20121018113400.txt
Is there a way to do this in the Run Configurations menu?
EDIT: The date format doesn't have to be exactly that. I just want a unique filename for each time I generate the file.
I am new to Stack Overflow, so apologies if I get this wrong or have misunderstood the question, but can you use:
And format it with a simple date formatter, for example:
And then change the format to whatever your want?
Again, apologies if this is unhelpful.