I have this weird situation where I have to read horizontally. So I am getting a csv file which has data in horizontal format. Like below:
CompanyName,RunDat
By far the most useful page on the subject of CSV parsing I've ever found is the following:
http://secretgeek.net/csv_trouble.asp
Basically, get an established library to do it for you, because csv parsing is deceptively tricky.