Seems like the option insertHeaderRow is not working.
Framework BRL.Blitz
Import BRL.StandardIO
Import Text.CSV
Local stream:TStream = ReadStream("data.csv")
Local opts:TCsvOptions = New TCsvOptions()
opts.delimiter = ","
opts.insertHeaderRow = "col1,col2,col3"
Local csv:TCsvParser = TCsvParser.Parse(stream, opts)
Repeat
Local status:ECsvStatus = csv.NextRow()
If status <> ECsvStatus.row
Exit
EndIf
Local row:TCSVRow = csv.GetRow()
Local count:Int = row.ColumnCount()
For Local i:Int = 0 Until count
Local header:TCsvHeader = row.GetHeader()
Print header.GetHeader(Size_T(i)) + ": " + row.GetColumn(Size_T(i)).GetValue()
Next
Forever
Print "Done!"
Hey,
Seems like the option insertHeaderRow is not working.
data.csv
Thanks!