Read from a cvs file

tripes

Member
Joined
Apr 16, 2009
Messages
18
Programming Experience
Beginner
i am using VB.NET 2003 and i need to read some data from a cvs file and store it into a two dimensional array.... i couldn't find an example anywhere.. pls help :(
 
Did you mean a csv file, as in a spreadsheet?

By definition it ought to be a text file, so you can read each line using a textreader into a string object.

Then you can use the split method to split by a certain delimiter. For csv files the delimiter is usually a comma.
 
CVS is Concurrent Version System. THe OP might be asking how to get a file out of a CVS repository, hence my question (so that we dont waste time explaining the wrong thing)
 
i couldn't find an example anywhere.. pls help :(

I searched on this forum for "read from CSV file", and it returned 65 related topics. I'm sure some of them would give you a starting point.
 

Latest posts

Back
Top