How do I get a list of files in a directory in C++?

后端 未结 13 1445
南旧
南旧 2020-11-28 23:36

How do you get a list of files within a directory so each can be processed?

13条回答
  •  执念已碎
    2020-11-28 23:41

    HANDLE WINAPI FindFirstFile(
      __in   LPCTSTR lpFileName,
      __out  LPWIN32_FIND_DATA lpFindFileData
    );
    

    Setup the attributes to only look for directories.

提交回复
热议问题