ERASE@

Platform

x64, Win32

Purpose

To delete a file.

Syntax

SUBROUTINE ERASE@(FILE,ERROR_CODE)
CHARACTER (LEN=*) FILE
INTEGER (KIND=2) ERROR_CODE

Description

ERASE@ deletes a file. The file name may be a local name, for example: FOO.TXT, or a fully qualified pathname, for example, C:\PROJECT\JUNK.TXT. ERROR_CODE is returned as zero for success or with the system error code.

Example

CALL ERASE@('USELESS.DAT',ERROR_CODE)
CALL DOSERR@(ERROR_CODE)

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited