FileDocCategorySizeDatePackage
Delete.javaAPI DocExample552Sun Feb 08 21:33:48 GMT 2004None

Delete

public class Delete extends Object
Delete a file from within Java
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: Delete.java,v 1.5 2004/02/09 03:33:47 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)


		// Construct a File object for the backup created by editing
		// this source file. The file probably already exists.
		// My editor creates backups by putting ~ at the end of the name.
		File bkup = new File("Delete.java~");
		// Quick, now, delete it immediately:
		bkup.delete();