diff --git a/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java b/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java index be37e2dd..34843364 100644 --- a/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java @@ -300,7 +300,9 @@ public class CommonUtil { public static Properties loadConfig(File file) { Properties properties = new Properties(); FileInputStream fis = null; - + if (!file.exists()){ + createFile(file.getPath()); + } try { fis = new FileInputStream(file); properties.load(fis);