Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
String filename = "C:\newfile.txt";
File f = new File(filename);
try {
/* Create File */
if (f.createNewFile()) {
System.out.println("File sucessfully created");
}
else {
System.out.println("File already exists");
}
/* Delete File */
if (f.delete()) {
System.out.println("File sucessfully deleted");
}
else {
System.out.println("File not deleted");
}
}
catch (IOException ioe) {
ioe.printStackTrace();
}
String ServletContext.getRealPath(String path)