I am reading a comma delimited text file and was hoping to use the split function to transfer fields into an array. However, some text fields are quoted and contain commas that are not field separators. To complicate matters, other fields contain multiple consecutive quotes e.g.
Line 1: 1,2,3,4,green pullover
Line 2: 3,4,5,6,"large pullover, blue"
Line 3: 7,8,9,10,"""D"" shaped earrings"
Excel sorts it all out fine when improrting the text file but is there an easy way to separate out these fields in VB?
Thanks in advance
Line 1: 1,2,3,4,green pullover
Line 2: 3,4,5,6,"large pullover, blue"
Line 3: 7,8,9,10,"""D"" shaped earrings"
Excel sorts it all out fine when improrting the text file but is there an easy way to separate out these fields in VB?
Thanks in advance