02.04.2020, 11:28
Use string.split:
Code:
csv = [["aaa",123,1,4
"bbb",456,2,5
"ccc",789,3,6]]
rows = csv:split('\n')
for _, row in ipairs(rows) do
items = row:split(',')
log(items)
end