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
- 프로그래머스
- RootMotion
- TObjectPtr
- winapi
- NRVO
- baekjoon
- 언리얼엔진5
- 2294
- C++
- UE5
- const
- GeeksForGeeks
- Programmers
- directx
- algorithm
- RVO
- softeer
- 1563
- 오블완
- 백준
- UnrealEngine5
- 티스토리챌린지
- 줄 세우기
- IFileDialog
- Unreal Engine5
- DirectX11
- UnrealEngine4
- Effective C++
- C
- 팰린드롬 만들기
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);