Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
8
Task/Delete-a-file/ArkScript/delete-a-file.ark
Normal file
8
Task/Delete-a-file/ArkScript/delete-a-file.ark
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# io:removeFiles can take multiple path to delete
|
||||
(io:removeFiles "input.txt" "/input.txt")
|
||||
(io:removeFiles "docs" "/docs")
|
||||
# or just one
|
||||
(io:removeFiles "input.txt")
|
||||
(io:removeFiles "/input.txt")
|
||||
(io:removeFiles "docs")
|
||||
(io:removeFiles "/docs")
|
||||
5
Task/Delete-a-file/Maxima/delete-a-file.maxima
Normal file
5
Task/Delete-a-file/Maxima/delete-a-file.maxima
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
load("operatingsystem")$
|
||||
delete_file("output.txt")$
|
||||
delete_file("/output.txt")$
|
||||
rmdir("docs")$
|
||||
rmdir("/docs")$
|
||||
5
Task/Delete-a-file/Pluto/delete-a-file.pluto
Normal file
5
Task/Delete-a-file/Pluto/delete-a-file.pluto
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
os.remove("input.txt")
|
||||
os.remove("/input.txt")
|
||||
|
||||
os.remove("docs") -- must be empty
|
||||
os.remove("/docs") -- ditto
|
||||
Loading…
Add table
Add a link
Reference in a new issue