|
|
@ -116,10 +116,10 @@ public class CartonUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
file.createNewFile(); |
|
|
|
file.createNewFile(); |
|
|
|
} |
|
|
|
} |
|
|
|
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file, true)); |
|
|
|
try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file, true))) { |
|
|
|
String outputMessage = message.replaceAll("~", "\r\n") + "," + "\r\n"; |
|
|
|
String outputMessage = message.replaceAll("~", "\r\n") + "," + "\r\n"; |
|
|
|
bufferedWriter.write(outputMessage); |
|
|
|
bufferedWriter.write(outputMessage); |
|
|
|
bufferedWriter.close(); |
|
|
|
} |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
FineLoggerFactory.getLogger().error("output fail", e); |
|
|
|
FineLoggerFactory.getLogger().error("output fail", e); |
|
|
|
} |
|
|
|
} |
|
|
|