Here you can find the source of deleteFile(String path)
Parameter | Description |
---|---|
path | a parameter |
public static void deleteFile(String path)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { /**/*from w w w . ja v a 2 s .co m*/ * delete file * @param path */ public static void deleteFile(String path) { File file = new File(path); file.deleteOnExit(); } }