SHOW:
|
|
- or go back to the newest paste.
1 | --should probably be sExample = http.get(VARIABLENAMEHERE) | |
2 | --with the variable name passed in | |
3 | - | --printr(sExample |
3 | + | |
4 | ||
5 | --data is the table name | |
6 | - | for i=1,10 do |
6 | + | |
7 | --this only works for up to 100 lines. I do not have a good | |
8 | --method to know the line number or do this dynamically right | |
9 | - | -- print(line) |
9 | + | --now. |
10 | for i=1,100 do | |
11 | line = sExample.readLine() | |
12 | - | -- i = i + 1 |
12 | + | |
13 | data[i] = line | |
14 | --this is a debug line just to show the data | |
15 | print(data[i]) | |
16 | end | |
17 | sExample.close() |