Ramesh4u
asked on
Creating directory using java ?
Could anyone tell me how to create a directory structure in my local drive ( I am using Unix stataion ) using java program.
Thanks
Ramesh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
would mkdir works for all the operating system?
Yes... It will work for every operating system
String dirname = "your directory name"
File dir = new File(dirname);
if(!dir.exists() )
{
dir.mkdirs();
}