파일 탐색하기

-인자로 전달된 디렉토리 경로로부터 파일을 탐색한다. ex:)SearchFile(“C:\\*.*”); //C드라이브의 모든 파일을 탐색한다. #include #include #include #define BUFSIZE 512 void SearchFile(char* pPath){         struct _finddatai64_t c_file;         intptr_t hFile;         char dirPath[BUFSIZE];         char tempPath[BUFSIZE];         int i;         //디렉토리 경로명만 추출하는 작업(현재 경로명에서 *.* 제거)         strncpy(dirPath,pPath,BUFSIZE-1);         i=strlen(dirPath)-4;         dirPath[i]=0;         //파일 탐색 시작         … 더 읽기
바로가기