comp.lang.ada
 help / color / mirror / Atom feed
From: M E Leypold <development-2006-8ecbb5cc8aREMOVETHIS@ANDTHATm-e-leypold.de>
Subject: Re: How would I determine the contents of a directory
Date: 28 Jun 2006 15:53:53 +0200
Date: 2006-06-28T15:53:53+02:00	[thread overview]
Message-ID: <uyfyhp4c9a.fsf@hod.lan.m-e-leypold.de> (raw)
In-Reply-To: 1151501965.792188.167030@b68g2000cwa.googlegroups.com


"Chris L" <clusardi2k@aol.com> 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





       reply	other threads:[~2006-06-28 13:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1151501965.792188.167030@b68g2000cwa.googlegroups.com>
2006-06-28 13:53 ` M E Leypold [this message]
2006-06-29 17:05   ` How would I determine the contents of a directory tmoran
2006-06-29 18:38     ` Pascal Obry
2006-06-30  9:06       ` M E Leypold
2006-07-01  7:31         ` Pascal Obry
2006-07-01  8:58           ` M E Leypold
2006-06-28 13:59 ` Peter Hermann
2006-06-29  2:04 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox