Closed zhzhdoai closed 5 months ago
最后会调用JavaCGFileUtil.class#genBufferedWriter public static BufferedWriter genBufferedWriter(String filePath) throws FileNotFoundException { return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath), StandardCharsets.UTF_8)); }
应该写成 new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath, true), StandardCharsets.UTF_8));
最新的版本没有做合并的处理了,还同提交,我改一下这个方法,支持指定是否覆盖
最后会调用JavaCGFileUtil.class#genBufferedWriter public static BufferedWriter genBufferedWriter(String filePath) throws FileNotFoundException { return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath), StandardCharsets.UTF_8)); }
应该写成 new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath, true), StandardCharsets.UTF_8));