Hi,
I would suggest you to open the file as an ifstream then read each line into a string (or CString) until EOF. Use getline() instead of >> to read till End of Line, not till the first whitespace.
then iterate through the string with strstr(...) or (Find)to locate the commas and split the string up with strncpy (Mid).
Hope this helps you
Branko