It is my Computer Notes. Using Guide : object-key or object-key-key e.g. Step 1 Blog Search : [mysql-run] and then Step 2 ctrl+F [mysql-run] {bookMark me : Ctrl+D}
2013年9月27日 星期五
java-file file-delete
java-file-delete
< File >
try {}
catch (FileNotFoundException fnfex) {System.out.println("FileNotFoundException Err:"+ fnfex.getMessage());}
catch (IOException ioex) {System.out.println("IOException Err:" + ioex.getMessage());}
<File.Delete>
File f = new File(fileName);
boolean success = f.delete();
try {}
catch (FileNotFoundException fnfex) {System.out.println("FileNotFoundException Err:"+ fnfex.getMessage());}
catch (IOException ioex) {System.out.println("IOException Err:" + ioex.getMessage());}
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言