Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Frustum
- IFileDialog
- UnrealEngine5
- baekjoon
- 백준
- winapi
- softeer
- C++
- 줄 세우기
- 티스토리챌린지
- RootMotion
- Programmers
- TObjectPtr
- RVO
- Unreal Engine5
- 팰린드롬 만들기
- 2294
- C
- GeeksForGeeks
- UnrealEngine4
- NRVO
- 프로그래머스
- algorithm
- 오블완
- 언리얼엔진5
- DirectX11
- const
- 1563
- directx
- UE5
Archives
- Today
- Total
Game Develop
[C++] 특정 폴더내 파일이름 가져오기. 본문
string path = "C:\\Users\\JYP\\Desktop\\p\\resource\\spam\\*.*";
// 맨끝에 *대신 특정 확장자를 입력하면 그 확장자만 읽어올 수 있다.
struct _finddata_t fd;
intptr_t handle;
if ((handle = _findfirst(path.c_str(), &fd)) == -1L)
{
cout << "No file in directory!" << endl;
// 파일이 없을경우 발생시킬 이벤트.
}
do
{
cout << fd.name << endl;
} while (_findnext(handle, &fd) == 0);
_findclose(handle);