} catch (ParseException e) {
e.printStackTrace();
}
-
+
return templateStr;
}
-
+
public static void write2File(File file, ArrayList<String> content) {
- String newFileName = Environment.GENERATED_FILE_DIR + "/" + file.getName();
+ String newFileName = Environment.GENERATED_FILE_DIR + "/"
+ + file.getParentFile().getName() + "/" + file.getName();
+
File newFile = new File(newFileName);
newFile.getParentFile().mkdirs();
if (!newFile.exists()) {