1File file = new File("src/resources/run.txt");
2
3file.getParentFile().mkdirs();
4
5FileWriter writer = new FileWriter(file);
6writer.append("this is a test");
7writer.close();
1File file = new File("src/resources/run.txt");
2
3file.getParentFile().mkdirs();
4
5file.createNewFile();