FileDocCategorySizeDatePackage
Delete.javaAPI DocExample544Sat Nov 25 12:54:54 GMT 2000None

Delete

public class Delete extends Object
Delete a file from within Java
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: Delete.java,v 1.4 2000/11/25 17:54:55 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();