Java Program To Create A Directory.
Directory
Folder, directory,[1] catalog, or drawer,[2] in computing, is a virtual container within a digital file system, in which groups of computer files and other folders can be kept and organized.(more)
import java.io.*;
class c
{
public static void main(String arg[])
{
try
{
String strDir="E:\\Java\\Files/E:\\Java\\Files\\Exchange";
boolean success=(new File(strDir)).mkdirs();
}catch(Exception e){}
}
}
Loading...
|
Comments :
Post a Comment