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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.