Advertisement
Simlor_GER

SimSoft Yellow - UPDATE - 5.0.2

Jul 20th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. --SimSoft Yellow - Copyright by Simlor (http://www.computercraft.info/forums2/index.php?/user/55655-simlor/)
  2.  
  3. --Update 5.0.2
  4.  
  5. file = fs.open("SimSoft/Data/Version","r")
  6. local fileData = {}
  7. local line = file.readLine()
  8. repeat
  9. table.insert(fileData,line)
  10. line = file.readLine()
  11. until line == nil
  12. file.close()
  13.  
  14. Sprache = fileData[4]
  15.  
  16. settings.set("shell.allow_disk_startup", false)
  17. settings.save(".settings")
  18.  
  19. local file = fs.open("SimSoft/Data/Version", "w")
  20. file.writeLine("SimSoft System Version")
  21. file.writeLine("")
  22. file.writeLine("5.0.2")
  23. file.writeLine(Sprache)
  24. file.close()
  25.  
  26. os.reboot()
  27.  
  28. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement