I've been toying with this bit of code:
I've tried editing it to:
My question is how can I add a column into a csv? (If that is possible)
B4X:
Dim headers As List
List1 = StringUtils1.LoadCSV2(Dir, Filename, ",", headers)
' Sets the header names of the columns
Dim h(headers.Size) As String
For i = 0 To headers.Size - 1
h(i) = headers.Get(i)
Next
I've tried editing it to:
B4X:
For i = 0 to header.size ' to allow for the new column
If i = headers.size - 1 then
h(i) = "" 'to add a blank column one before the last column
Else
h(i) = headers.get(i)
End if
Next
My question is how can I add a column into a csv? (If that is possible)