12
Reply

CSV parse problem.

Steve Favis

Steve Favis

Dec 7 2010 4:23 PM
6.9k
I want to read file input from a .csv and assign each column to a variable, then repeat for each line overwriting the previous lines variable assignments.
eg .csv file, 6 columns :
Date, high, low, close, volume, adj close
01/01/2010, 21.2, 18.5, 20.2, 23839402, 20.2.

I can't for the life of me figure this out probably because I am new to c# and am not sure about all the supported string processing functions . I have no idea how to process the string after getting a whole line with string.ReadLine(). Thanks in advance!

Answers (12)