
166
____________________________________________________________________
CLear FILE File I/O statement
CLFILE
Erases the data stored in a data file.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
CLFILE [#]filenumber
Parameter:
Parameter:Parameter:
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
Description:
Description:Description:
Description:
CLFILE erases data in the data file specified by filenumber and resets the number of
written records in the directory to zero.
• The memory area freed by CLFILE can be used for other data files or user pro-gram
files.
• User programs can no longer refer to the erased data.
• CLFILE cannot erase data in files stored in drive B.
Syntax errors:
Syntax errors:Syntax errors:
Syntax errors:
Error code and message Meaning
error 71: Syntax error
filenumber is missing.
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
34h
Bad file name or number
(You specified filenumber of an unopened file.)
36h
Improper file type
(You specified filenumber of a file other than data files.)
3Ah
File number out of the range
43h
Not allowed to access data in drive B
Comentários a estes Manuais