For Programmers: Free Programming Magazines  


Home > Archive > VC Language > June 2005 > Files in current directory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Files in current directory
Jacky Luk

2005-06-02, 9:06 am

Which API(s) or C/C++ library functions can retrieve all the names of the
files in a directory?
Thanks
Jack


thatsalok

2005-06-02, 4:01 pm

FindFirstFile,FindNextFile


--
cheers,
Alok Gupta
Visit me at http://alok.bizhat.com
"Jacky Luk" <jl@knight.com> wrote in message
news:u5IDsV2ZFHA.2124@TK2MSFTNGP14.phx.gbl...
> Which API(s) or C/C++ library functions can retrieve all the names of the
> files in a directory?
> Thanks
> Jack
>
>



Jacky Luk

2005-06-02, 4:01 pm

nice and neat thanks
Jack

"thatsalok" <thatsalok@NO_gmail.com_I_DONT_NEED_SPAM> ¼¶¼g©ó¶l¥ó·s»D:%23lBH1e2ZFHA.3328@TK2MSFTNGP09.phx.gbl...
> FindFirstFile,FindNextFile
>
>
> --
> cheers,
> Alok Gupta
> Visit me at http://alok.bizhat.com
> "Jacky Luk" <jl@knight.com> wrote in message
> news:u5IDsV2ZFHA.2124@TK2MSFTNGP14.phx.gbl...
>
>



William DePalo [MVP VC++]

2005-06-02, 4:01 pm

"Jacky Luk" <jl@knight.com> wrote in message
news:u5IDsV2ZFHA.2124@TK2MSFTNGP14.phx.gbl...
> Which API(s) or C/C++ library functions can retrieve all the names of the
> files in a directory?


I see you have already been pointed to FindFirstFile() and FindNextFile().
Don't forget to call FindClose() when you are done or a memory and handle
leak will occur.

Regards,
Will


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com