現在、テストの実行結果をテキストファイル(既存のもの)に記録しています。タイムスタンプ付きのテキストファイルを作成して、Windowsディレクトリに保存するにはどうすればよいですか?私が現在使用しているコードは
File outputResultFile = new File(CompleteFileNameForNotepad);
PrintWriter outputFile = new PrintWriter(new FileWriter(outputResultFile));
String str = "text to write in to the file";
outputFile.println(str);
outputFile.close();
ご協力いただきありがとうございます。