3:42 pm - Thursday November 18, 0326

File program for mkdirs method

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

//program for mkdirs method//

// Author: Candid java//

//Description: This Program  Creates the directory named by this abstract pathname including any necessary but nonexistent parent directories.//

 

import java.io.*;

class mkdirs

{

public static void main(String args[])

{

// path where directories must be created

File f1=new File("d:/sam/sampl");

// creates the directories in specified path

f1.mkdirs();

}

}

 

 

OUTPUT:

D:candidjava /io/file> javac  mkdirs.java

D:candidjava /io/file> java mkdir

 folder will be created in specified path including parent directories

 

 

Filed in: Z-A All Java Codes

No comments yet.

Leave a Reply