The following code 'll delete the file 'myfile.html' if exists and 'll create a new file 'myfile.html'
File f = new File("myfile.html");
if(f.exists()){
f.delete();
f.createNewFile();
}
File f = new File("myfile.html");
if(f.exists()){
f.delete();
f.createNewFile();
}
No comments:
Post a Comment