Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #create #file #folder
ADD COMMENT
Topic
Name
1+7 =