Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.deleteFile

Deletes a file from disk.

Syntax

Parameters

fname
The full path name of the file to delete.

Description

The deleteFile method deletes a file from disk. The argument is first converted by osSafeSpec , which will fix the pathname separators, if necessary.

Returns

Returns true on success, false on failure. Possible reasons for failure include:

Example

The following line deletes the file at Windows pathname c: emp ext.txt even though the given pathname uses UNIX-style pathname separators.

See Also

osSafeSpec

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.