Reading a csv file
I have a comma delimited file in this format
value1, value2, value3, value4
value1, value2, value3, value4
value1, value2, value3, value4
How can I open the file and read the data into fields? i.e,
lastName, firstName, phoneNo, Age
I've found many sample but they all cover reading the textfile,
I need to know how to read the text file but split the line or
read each value into a field.
Any help would be deeply appreciated. Thanks.
|