Here you can find the source of deleteFile(String strSrc)
Parameter | Description |
---|---|
strSrc | file to delete |
// ////////////////////////////////////////////////////// public static boolean deleteFile(String strSrc)
//package com.java2s; import java.io.*; public class Main { /**//from ww w . j a v a 2 s.c o m * Delete file * * @param strSrc * file to delete * @return true if succees, otherswise false * @author Thai Hoang Hiep */ // ////////////////////////////////////////////////////// public static boolean deleteFile(String strSrc) { File flSrc = new File(strSrc); return flSrc.delete(); } }