Article View: borland.public.cppbuilder.nativeapi
Article #14698Re: Search files in special directory
From: Paul E.
Date: Thu, 07 Aug 2003 00:12
Date: Thu, 07 Aug 2003 00:12
23 lines
1634 bytes
1634 bytes
thanks remy so much, that is all what I was looking for...
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f3151fe$1@newsgroups.borland.com...
>
> "Paul E." <paulepst69@aol.com> wrote in message
> news:3f31426f@newsgroups.borland.com...
> > I need to search a folder for all existing txt files and
> > load there names in a TListBox, how I can do this,
> > as the folder can contain other files (than txt).
>
> Look at FindFirstFile(), FindNextFile(), and FindClose(). Specify "*.txt"
> as the file mask, ie:
>
> WIN32_FIND_DATA fd = {0};
> HANDLE hSearch = FindFirstFile( "c:\\some folder\\*.txt", &fd );
> //...
>
>
> Gambit
>
>
Technical Details
Message-ID:
<3f31997e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f31426f@newsgroups.borland.com> <3f3151fe$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e66886ded69e6589 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-06 17:20:05 PST From: "Paul E." <paulepst69@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f31426f@newsgroups.borland.com> <3f3151fe$1@newsgroups.borland.com> Subject: Re: Search files in special directory Date: Wed, 6 Aug 2003 16:12:44 -0800 Lines: 25 Organization: Toshiba X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 62.135.6.211 Message-ID: <3f31997e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060215166 62.135.6.211 (6 Aug 2003 17:12:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail