Noob question, how can I add ' character or concatenate ' character before and after each item in row before String join?
Please see below the current code used and outputs.
CSV File:
fName,dDate
x1,09/17/2020
x2,09/16/2020
x3,09/15/2020
Current output on ListBox1:
x1,09/17/2020
x2,09/16/2020
x3,09/15/2020
Needed output on ListBox1:
'x1','09/17/2020'
'x2','09/16/2020'
'x3','09/15/2020'
Thanks!
Please see below the current code used and outputs.
Code:
Dim Rows = (From line In IO.File.ReadAllLines(FileTest.csv)
Where line.Length > 0
Let Items = line.Split(","c)
Select Items Skip 1).ToList
For Each row In Rows
ListBox1.Items.Add(String.Join("'", row))
Next
fName,dDate
x1,09/17/2020
x2,09/16/2020
x3,09/15/2020
Current output on ListBox1:
x1,09/17/2020
x2,09/16/2020
x3,09/15/2020
Needed output on ListBox1:
'x1','09/17/2020'
'x2','09/16/2020'
'x3','09/15/2020'
Thanks!