从文件夹中删除文件
//package com.nowjava;/** 时代Java - N o w J a v a . c o m 提供 **/ import java.io.File; public class Main { public static void removeFilesFromFolder(String folder) { File fold = new File(folder); for (int i = 0; i < fold.listFiles().length; i++) { fold.listFiles()[i].delete(); } } }