Delete file using Java IO API : File Commands « File Input Output « Java
Delete file using Java IO API : File Commands « File Input Output « Java ... import java.io.File; public class Delete { public static void main(String[] args) { String fileName = "file.txt"; // A File object to represent the filename File f = new File(fil
www.java2s.com |