扫码下载编程狮APP
It won't delete directories that are not empty. import java.io.File; public class MainClass { public static void main(String[] a) { File file = new File("c:\\test\\test.txt"); boolean success = file.delete(); System.out.println(success); } }
It won't delete directories that are not empty.
运行结果如下:
联系方式:
扫描二维码
下载编程狮App
扫码关注 领资料包