Advertisement
JaMaNi133

update

Nov 25th, 2022 (edited)
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local pastefile = fs.open("OS/programs.txt", "r")
  2.  
  3. while true do
  4. paste = pastefile.readLine()
  5. if paste == nil then
  6. error("done")
  7. end
  8. name = pastefile.readLine()
  9. print("-------------------------------------------------")
  10. print("Updating : ",name)
  11. shell.run("delete",name)
  12. shell.run("pastebin","get",paste,name)
  13. print("-------------------------------------------------")
  14. end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement