Delete a file: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 121: | Line 121: | ||
</lang> |
</lang> |
||
=={{header|BBC BASIC}}== |
==={{header|BBC BASIC}}=== |
||
If the names are known as constants at compile time: |
If the names are known as constants at compile time: |
||
<lang bbcbasic> |
<lang bbcbasic> |
||
Line 132: | Line 132: | ||
<lang BBC BASIC> OSCLI "DELETE " + file$ |
<lang BBC BASIC> OSCLI "DELETE " + file$ |
||
OSCLI "RMDIR " + dir$</lang> |
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}}== |
=={{header|C}}== |