Create new folder using URL for name - Java -
i trying create empty folder name http://www.example.com/, reason can't. tried:
file dir = new file("http://www.example.com/"); dir.mkdir();
but nothing happends. why?
file file = new file("c:\\directorydata"); if (!file.exists()) { if (file.mkdir()) { system.out.println("directory created!"); } else { system.out.println("failed create directory"); } } file files = new file("c:\\directory2\\subdir\\subdir"); if (files.exists()) { if (files.mkdirs()) { system.out.println("directories created!"); } else { system.out.println("failed create directories!"); } }
Comments
Post a Comment