Requires:
Code:
Imports Microsoft.VisualBasic.FileIO


Example 1

Code:
Dim Line as string = ""Hello","I am , Number 1","2","2,5""

Dim arrline() As String
Dim csvParser = New TextFieldParser(New StringReader(Line))
csvParser.TextFieldType = FileIO.FieldType.Delimited
csvParser.SetDelimiters(",")

Using csvParser
      arrline = csvParser.ReadFields()
End Using
The result will be:
arrline(0) = Hello
arrline(1) = I am , Number 1
arrline(2) = 2
arrline(3) = 2,5
Example 2
Code:
Dim Line as string = ""Hello","I am , Number 1","2","2,5""
Dim arrLine() as string = Line.Split(",")
The result will be:
arrline(0) = Hello
arrline(1) = I am
arrline(2) = Number 1
arrline(3) = 2
arrline(4) = 2
arrline(5) = 5