Commit 62fa836f authored by Quxl's avatar Quxl

c

parent 297c76a6
...@@ -426,10 +426,11 @@ public class FileUtil { ...@@ -426,10 +426,11 @@ public class FileUtil {
OutputStreamWriter osw = null; OutputStreamWriter osw = null;
Writer writer = null; Writer writer = null;
try { try {
if (!file.getParentFile().exists()) { File absFile = file.getAbsoluteFile();
file.getParentFile().mkdirs(); if (!absFile.getParentFile().exists()) {
absFile.getParentFile().mkdirs();
} }
fos = new FileOutputStream(file); fos = new FileOutputStream(absFile);
osw = new OutputStreamWriter(fos, "UTF-8"); osw = new OutputStreamWriter(fos, "UTF-8");
writer = new BufferedWriter(osw); writer = new BufferedWriter(osw);
for (String string : strings) { for (String string : strings) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment