[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ERASE
 Remove a file from disk
------------------------------------------------------------------------------
 Syntax

     ERASE | DELETE FILE <xcFile>

 Arguments

     <xcFile> is the name of the file to be deleted from disk and can be
     specified either as a literal filename or as a character expression
     enclosed in parentheses.  The filename must be fully specified including
     the extension, and it may optionally be preceded by a drive and/or path
     specification.

 Description

     ERASE is a file command that removes a specified file from disk.  SET
     DEFAULT and SET PATH do not affect ERASE.  The file is deleted from disk
     only if found in the current DOS directory or in the directory
     explicitly specified as part of the filename.

     Warning!  Files must be CLOSEd before being ERASEd.

 Examples

     .  This example removes a specified file from disk then tests to
        see if the file was in fact removed:

        ? FILE("Temp.dbf")         // Result: .T.
        ERASE Temp.dbf
        ? FILE("Temp.dbf")         // Result: .F.

 Files:  Library is CLIPPER.LIB.

See Also: CLOSE CURDIR() FERASE() FILE() FRENAME() RENAME USE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson