luobang %!s(int64=2) %!d(string=hai) anos
pai
achega
b4107c9310
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/java/com/steerinfo/dil/util/newFileTool.java

+ 1 - 1
src/main/java/com/steerinfo/dil/util/newFileTool.java

@@ -15,7 +15,7 @@ public class newFileTool {
         //SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
         FastDateFormat format = FastDateFormat.getInstance("yyyy-MM-dd");
         String date  = format.format(new Date());
-        File file = new File("../log/" + date + "-" + type + ".txt");
+        File file = new File("../log\\" + date + "-" + type + ".txt");
         FileWriter fileWriter = new FileWriter(file,true);
         FastDateFormat format1 = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");
         fileWriter.append("\n");