String requestData = "something you want to save";
String saveFilePath = "C:\\Users\\xxxx\\Documents\\xxxxx\\";
String dateNow = (new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss")).format(new Date());
java.io.FileWriter fw = new java.io.FileWriter(saveFilePath + dateNow +".txt");
fw.write(requestData);
fw.close();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-02-25
猜你喜欢
  • 2021-09-14
  • 2021-10-27
  • 2021-06-06
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案