local csv = require 'csv'
local inspect = require 'inspect'
local f = csv.open('/tmp/a.csv', {
separator = ';',
header = true,
})
for fields in f:lines() do
print(inspect(fields))
end
/tmp/a.csv:
Output:
{
a = "1",
b = "2",
c = "3"
}
{
a = ""
}
I'd expect only one iteration. The field is added here. How do I distinguish this extra result from the genuine ones?
/tmp/a.csv:a;b;c 1;2;3Output:
I'd expect only one iteration. The field is added here. How do I distinguish this extra result from the genuine ones?