FoxWorn3365

ACC

Aug 26th, 2024 (edited)
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function split(inputstr, sep)
  2. if sep == nil then
  3. sep = "%s"
  4. end
  5. local t = {}
  6. for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
  7. table.insert(t, str)
  8. end
  9. return t
  10. end
  11.  
  12.  
  13. data = http.get("https://highcalc.fcosma.it/ingameacc/hello.txt")
  14. content = data.readAll()
  15. data.close()
  16.  
  17.  
  18. for k, v in pairs(split(content,"|")) do
  19. print(k)
  20. print(v)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment