Advertisement
Marlingaming

CCSPS IRON 3.0.0 - Window Tool

Jun 15th, 2023 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local arg = {...}
  2. local LIST = fs.list("os/Tasks")
  3. local Path = fs.complete("os/Tasks",("Tab_"..arg[2]..".tmp"))
  4. local Text
  5. if arg[1] == "create" then--3=file,4=title,5=settings,6=w,7=h,8=x,9=y
  6. Path = fs.complete("os/Tasks",("Tab_"..#LIST..".tmp"))
  7. Text = {arg[3],arg[4],arg[5],arg[6],arg[7],1,1}
  8. local file = fs.open(Path,"w")
  9. file.write(textutils.serialize(Text))
  10. file.close()
  11. elseif arg[1] == "load" then
  12. local file = fs.open(Path,"r")
  13. Text = textutils.unserialize(file.readAll())
  14. return Text
  15. elseif arg[1] == "edit" then
  16.  
  17. elseif arg[1] == "delete" then
  18. fs.delete(Path)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement