I've got a CSV that's just a single column of text like so
Param1
Param2
Param3
and so on...
I'm trying to use
to read it into a List of String... the issue is that when I use this, every entry after the 1st gets a leading space...
Any thoughts on this?
Thanks!
-Justin
Param1
Param2
Param3
and so on...
I'm trying to use
VB.NET:
Dim strIA_Block_Parameters As New List(Of String)
Dim IA_Block_Parameters_FileStream As FileStream = New FileStream(strIA_Block_Parameters_FilePath, FileMode.Open, FileAccess.Read)
Dim IA_Block_Parameters_FileStreamReader As StreamReader = New StreamReader(IA_Block_Parameters_FileStream)
'-----
strIA_Block_Parameters = IA_Block_Parameters_FileStreamReader.ReadToEnd.Split(ControlChars.NewLine).ToList
to read it into a List of String... the issue is that when I use this, every entry after the 1st gets a leading space...
Any thoughts on this?
Thanks!
-Justin