从文件系统中删除特定的文件或目录
import java.io.*; /** 来自 时 代 Java - nowjava.com**/ public class Main { public static void main(String[] args) { File file = new File("C://Folder/DeleteDemo.txt"); boolean blnDeleted = file.delete(); System.out.println("Was file deleted ? : " + blnDeleted); } }