How to create directory along with parent directory

 

2 Comments How to create directory along with parent directory

  1. Shashi Ranjan

    File outFile = new File(fileName);
    outFile.getParentFile().mkdir();
    outFile.createNewFile();

    Reply

Leave A Comment

Your email address will not be published. Required fields are marked *