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...Code: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
Any thoughts on this?
Thanks!
-Justin


LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks