Reading file names from a folder.

Started by
10 comments, last by Chett2001 16 years, 11 months ago
WIN32_FIND_DATA FindData;
LPCTSTR myDir = "books/";

HANDLE hFind = FindFirstFile(myDir, &FindData);

if (hFind == INVALID_HANDLE_VALUE)
{
MessageBox(0, "Error...", "Error!", 0);
}
else
{
MessageBox(0, FindData.cFileName, Success!, 0);
}


Try this...
Advertisement
Thanks for all the answers, problem solved :)
Chett - "I look forward to helping all of you one day, but right now im just a noob learning his way through the perils of game Development."

This topic is closed to new replies.

Advertisement