From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2926de1e76701fb3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: How would I determine the contents of a directory References: <1151501965.792188.167030@b68g2000cwa.googlegroups.com> From: M E Leypold Date: 28 Jun 2006 15:53:53 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Some cool user agent (SCUG) NNTP-Posting-Host: 88.72.226.55 X-Trace: news.arcor-ip.de 1151502456 88.72.226.55 (28 Jun 2006 15:47:36 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:5273 Date: 2006-06-28T15:53:53+02:00 List-Id: "Chris L" writes: > Within Ada how would I do that? Within Ada 95 -> no way. There are three methods of getting out of that: (1) Writing your own Index file in the directory in question any time you create a new file. Your application can then only see the files it created itself, but that's good enough for a number of apllication areas. (2) Use OS-specific binding (Florist, Win32Ada) to write a directory reading procedure of you own. (3) If you use GNAT: There is a directory package in the Gnat specific libraries. (4) see http://www.martin.dowie.btinternet.co.uk/Directories/adabrowse/ada-directories.html for a Windows only backport Ada.Directories. Within Ada 2005: Ada.Directories is in the standard libraries Regards -- Markus