I created a code, it works fine and all, but I wanted the program to generate a .txt file with the results to save it for later use. But I want the program to create different files each time I execute it because I plan to use it once a month (it's for a monthly profit calculation) and save it using the year and month numbers to name the file.
For example:
File file = new File("C:\...\YearMonth.txt");
But of course the year and month would depend on the int Year and int Month variables informed previously in the program.
Any ideas? Hope I was clear enough.