🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8627

Get list of files in directory in code?

#8627
From: Randall Parker
Date: Sun, 10 Oct 2004 22:55
5 lines
1105 bytes
Suppose one has a string which is a path to a directory. How can one:

1) Find out if the directory exists.

2) retrieve a list of strings of filenames in that dir that, say, end in .dll?
Technical Details
Message-ID: <4169bd73$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fa18d5d80bd97e57,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 10 Oct 2004 15:55:46 -0700
From: Randall Parker <STOPtechiepundit@EVILfuturePOXpunditSPAM.com>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Get list of files in directory in code?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.40.49.194
Message-ID: <4169bd73$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097448819 4.40.49.194 (10 Oct 2004 15:53:39 -0700)
Lines: 5
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail