Java 教程
Java 實例
以下實例演示了使用 delete() 方法將文件刪除:
以上代碼運行輸出結果為(需要在 C 盤上先創(chuàng)建 test.txt 文件):
test.txt 文件已被刪除!