Find File.!

Hi Gurus.,
How can I search the latest 2 files from a file list from the disk.?
Thanks in advance.!
Warm Regards,
DILLIP.
[167 byte] By [Dillip] at [2007-11-17 22:38:41]
# 1 Re: Find File.!
you can use a CFileFind

CFileFind finder;
bool bWorking = finder.FindFile("\\*.*");

while(bWorking)
{
bWorking = finder.FindNextFile();

// Here you add all the checking you want: creation time, modification time, and access time.
}

best regardes...
YOTOS at 2007-11-10 8:41:44 >
# 2 Re: Find File.!
Don't forget to do a CFileFind::Close() when you're finished. (That's tripped me up so many times...).
TSYS at 2007-11-10 8:42:44 >