first of all FindFirstFile and FindNextFile are not C++ functions. They are probably something your implementation provides, but since you're not giving enough context, it's unlikely you'll get a precise answer. So, the best (most generic) answer is that you use boost (http://www.boost.org) to do what you need:
1) "boost filesystem" offers portable file system operations. The official tutorial (http://www.boost.org/doc/libs/1_55_0/libs/filesystem/doc/tutorial.html) shows a directory iteration example as listing tut3.cpp.
2) Once you have a filename, CSV files are just text files, with values separated by commas. Reading a text file line by line is explained in any C++ primer, e.g. http://www.cplusplus.com/doc/tutorial/files.
3) Splitting each line at the comma can be done in many ways. The latest C++ standard offers support for regular expressions. If your compiler doesn't support it, boost also includes a portable regular expression library. If your input is really just plain comma-separated files, something like this should do: http://stackoverflow.com/questions/10058606/c-splitting-a-string-by-a-character .
Your question was really more about googling that about programming.
first of all FindFirstFile and FindNextFile are not C++ functions. They are probably something your implementation provides, but since you're not giving enough context, it's unlikely you'll get a precise answer. So, the best (most generic) answer is that you use boost (http://www.boost.org) to do what you need:
1) "boost filesystem" offers portable file system operations. The official tutorial (http://www.boost.org/doc/libs/1_55_0/libs/filesystem/doc/tutorial.html) shows a directory iteration example as listing tut3.cpp.
2) Once you have a filename, CSV files are just text files, with values separated by commas. Reading a text file line by line is explained in any C++ primer, e.g. http://www.cplusplus.com/doc/tutorial/files.
3) Splitting each line at the comma can be done in many ways. The latest C++ standard offers support for regular expressions. If your compiler doesn't support it, boost also includes a portable regular expression library. If your input is really just plain comma-separated files, something like this should do: http://stackoverflow.com/questions/10058606/c-splitting-a-string-by-a-character .
Your question was really more about googling that about programming.