Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --should probably be sExample = http.get(VARIABLENAMEHERE)
- --with the variable name passed in
- sExample = http.get("http://d20mc.us/testing/ender/lall.php")
- --data is the table name
- data = {}
- --this only works for up to 100 lines. I do not have a good
- --method to know the line number or do this dynamically right
- --now.
- for i=1,100 do
- line = sExample.readLine()
- if line == "exit" then break end
- data[i] = line
- --this is a debug line just to show the data
- print(data[i])
- end
- sExample.close()
Advertisement
Add Comment
Please, Sign In to add comment