Are you attempting to write a C or C++ program? This is the C++ board. If you really mean a C program then I or one of the other mods will move it the the C board.
Excactly how to read the CSV file depends on what character is used as field separator. Normall is a comma, but can also be space or tab.
In a C program, I would use fgets() to get the entire line, then strtok() to split it up into its individual fields.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,961 posts
since Aug 2005