public static void clearFiles(String filePath){ File scFileDir = new File(filePath); File TrxFiles[] = scFileDir.listFiles(); for(File curFile:TrxFiles ){ curFile.delete(); } }
String filePath="D:fileswxpay"
public static void clearFiles(String filePath){ File scFileDir = new File(filePath); File TrxFiles[] = scFileDir.listFiles(); for(File curFile:TrxFiles ){ curFile.delete(); } }
String filePath="D:fileswxpay"