25 March, 2012

Create a Directory in Java

Simple Java Program to Create a Directory Anywhere....

import java.io.*;
public class MakeDirectory
{
public static void main(String[] a)
{
File file = new File("c:\\test\\");      // Path with directory name.
file.mkdir();
}
}

No comments:

Post a Comment

Thank You !