xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DeleteFile()

Deletes a file with error handling.

Syntax

DeleteFile( <cFileName> ) --> nErrorCode

Arguments

<cFileName>
This is a character string holding the name of the file to delete. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched and deleted in the current directory.

Return

The function returns zero on success or a numeric error code on failure.

Info

See also:FErase(), FileDelete(), RenameFile()
Category: CT:DiskUtil , Directory functions , Disks and Drives
Source:ct\disk.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe