22.10.2018, 06:21
Use this code to split last line data into a table:
Code:
data = ... -- get remote data
lines = data:split('\n')
line = lines[ #lines - 1 ] -- last line
line = line:gsub('%s+', ' ') -- remove multiple spaces
line = line:trim()
line = line:split(' ') -- convert to table
log(line)