Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CC.LIB - ClipCode CLIPPER S'87 Library - <b>erasefile() delete a file from disk, only if it exists</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ERASEFILE() Delete a file from disk, only if it exists

 Syntax....: ERASEFILE( filespec )
 Parameters: <expC>: the full Filename.Ext to be deleted

 Returns...: <expL>: .T. if file existed, else .F. if file not found
 Cautions..: none
 CC Calls..: none
 Alias.....: none

 Example...: IF .NOT. ERASEFILE( "CUSTOMER.DBF" )
               ? "CUSTOMER.DBF was not found!"
             ENDIF

See Also: ERASEALL

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson