Delete a file: Difference between revisions

no edit summary
No edit summary
Line 121:
</lang>
 
==={{header|BBC BASIC}}===
If the names are known as constants at compile time:
<lang bbcbasic>
Line 132:
<lang BBC BASIC> OSCLI "DELETE " + file$
OSCLI "RMDIR " + dir$</lang>
 
==={{header|IS-BASIC}}===
<lang IS-BASIC>100 WHEN EXCEPTION USE IOERROR
110 EXT "del input.txt"
120 EXT "del \input.txt"
130 EXT "rmdir docs"
140 EXT "rmdir \docs"
150 END WHEN
160 HANDLER IOERROR
170 PRINT "Error in line";EXLINE
180 PRINT "*** ";EXSTRING$(EXTYPE)
190 CONTINUE
200 END HANDLER</lang>
 
=={{header|C}}==
Anonymous user