comp.lang.ada
 help / color / mirror / Atom feed
From: David C. Hoos, Sr. <david.c.hoos.sr@ada95.com>
To: cheech@chongs.freeserve.co.uk
Subject: Re: Reading Filenames
Date: 2000/01/29
Date: 2000-01-29T00:00:00+00:00	[thread overview]
Message-ID: <86vctt$cc1$1@nnrp1.deja.com> (raw)
In-Reply-To: 86v59u$l05$1@newsg3.svr.pol.co.uk

In article <86v59u$l05$1@newsg3.svr.pol.co.uk>,
  "-=[CheecH]=-" <cheech@chongs.freeserve.co.uk> wrote:
> I want to write a little programme which can read in all the
filenames in a
> directory and write them to a text file.  But I have have no idea how
to
> read all the names in.  Can any one help please
It is difficult to give precise answers when you state neither the
platform (hardware and OS), nor the compiler you are using.

The most portable approach I can suggest is to use the appropriate one
of the existing Ada bindings for POSIX 1003.5

For Win32 there is a partial binding that includes what you need at:
http://perso.wanadoo.fr/pascal.obry/w32posix.html

For UNIX platforms, you can look for the FLORIST bindings in several
places.  The generic implementation is at
ftp://ftp.cs.fsu.edu/pub/PART/FLORIST/
there are also implementations at
ftp://ftp.cs.nyu.edu/pub/gnat/florist/ and at
http://www.gnuada.org/alt.html

Once you have the proper POSIX library for your platform and compiler,
use the subprograms in the package POSIX.Files



Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-01-29  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-29  0:00 Reading Filenames -=[CheecH]=-
2000-01-29  0:00 ` David [this message]
2000-01-29  0:00 ` Laurent Guerby
replies disabled

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