Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg = {...}
- local LIST = fs.list("os/Tasks")
- local Path = fs.complete("os/Tasks",("Tab_"..arg[2]..".tmp"))
- local Text
- if arg[1] == "create" then--3=file,4=title,5=settings,6=w,7=h,8=x,9=y
- Path = fs.complete("os/Tasks",("Tab_"..#LIST..".tmp"))
- Text = {arg[3],arg[4],arg[5],arg[6],arg[7],1,1}
- local file = fs.open(Path,"w")
- file.write(textutils.serialize(Text))
- file.close()
- elseif arg[1] == "load" then
- local file = fs.open(Path,"r")
- Text = textutils.unserialize(file.readAll())
- return Text
- elseif arg[1] == "edit" then
- elseif arg[1] == "delete" then
- fs.delete(Path)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement