Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
4
Task/Delete-a-file/Lingo/delete-a-file-1.lingo
Normal file
4
Task/Delete-a-file/Lingo/delete-a-file-1.lingo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- note: fileIO xtra is shipped with Director, i.e. an "internal"
|
||||
fp = xtra("fileIO").new()
|
||||
fp.openFile("input.txt", 0)
|
||||
fp.delete()
|
||||
7
Task/Delete-a-file/Lingo/delete-a-file-2.lingo
Normal file
7
Task/Delete-a-file/Lingo/delete-a-file-2.lingo
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- note: fileIO xtra is shipped with Director, i.e. an "internal"
|
||||
pd = the last char of _movie.path -- "\" for win, ":" for mac
|
||||
_player.itemDelimiter = pd
|
||||
vol = _movie.path.item[1]
|
||||
fp = xtra("fileIO").new()
|
||||
fp.openFile(vol&pd&"input.txt", 0)
|
||||
fp.delete()
|
||||
8
Task/Delete-a-file/Lingo/delete-a-file-3.lingo
Normal file
8
Task/Delete-a-file/Lingo/delete-a-file-3.lingo
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- delete (empty) directory "docs" in cwd
|
||||
bx_folder_delete("docs")
|
||||
|
||||
-- delete (empty) directory "docs" in root of current volume
|
||||
pd = the last char of _movie.path -- "\" for win, ":" for mac
|
||||
_player.itemDelimiter = pd
|
||||
vol = _movie.path.item[1]
|
||||
bx_folder_delete(vol&pd&"docs")
|
||||
Loading…
Add table
Add a link
Reference in a new issue