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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5ba80b3fe7d3447c X-Google-Attributes: gid103376,public From: David C. Hoos, Sr. Subject: Re: Reading Filenames Date: 2000/01/29 Message-ID: <86vctt$cc1$1@nnrp1.deja.com>#1/1 X-Deja-AN: 579223815 References: <86v59u$l05$1@newsg3.svr.pol.co.uk> To: cheech@chongs.freeserve.co.uk X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) X-Http-Proxy: 1.1 x39.deja.com:80 (Squid/1.1.22) for client 205.149.60.17 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Jan 29 18:52:46 2000 GMT X-MyDeja-Info: XMYDJUIDdhoossr Newsgroups: comp.lang.ada Date: 2000-01-29T00:00:00+00:00 List-Id: In article <86v59u$l05$1@newsg3.svr.pol.co.uk>, "-=[CheecH]=-" 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.