I am using Eclipse and jdk1.7. I am making a basic program using file handling, in which an output directory inside the directory is to be made. But when I run the program,
calling the only file.mkdirs() often doesn't work. call it in an evaluation such as -
file.mkdirs()
if(file.mkdirs()){ //do something}
Or, in an assignment such as -
boolean result = file.mkdirs();