Answers for "java creating folders instead of files"

2

java create file in folder

File file = new File("src/resources/run.txt");

file.getParentFile().mkdirs();

FileWriter writer = new FileWriter(file);
writer.append("this is a test");
writer.close();
Posted by: Guest on October-26-2020

Code answers related to "java creating folders instead of files"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language