SyntaxFix
Write A Post
Hire A Developer
Questions
Use this code spinet for create intermediate folders if one doesn't exist while creating/editing file:
File outFile = new File("/dir1/dir2/dir3/test.file"); outFile.getParentFile().mkdirs(); outFile.createNewFile();