Hello I was just wondering how to make a custom directory below the current user's home directory. I've tried this already and it doesn't work... (Code below)
I want it to go to this directory and create the folder in the documents folder
c:/users/"user"/documents/SimpleHTML/
File SimpleHTML = new File("C:/Users/"user"/Documents"); {
// if the directory does not exist, create it
if (!SimpleHTML.exists()) {
System.out.println("createing direcotry: " + SimpleHTML);
boolean result = SimpleHTML.mkdir();
if(result) {
System.out.println("Direcotry created!");
}
}
new simplehtmlEditor() {
//Calling to Open the Editor
};
}