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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79ecd742fb62f164 X-Google-Attributes: gid103376,public From: "Jerry van Dijk" Subject: Re: [HELP] How can I retrieves filenames? Date: 1998/02/15 Message-ID: <01bd3a35$8459d780$462c5c8b@aptiva>#1/1 X-Deja-AN: 325296349 References: <6c4gbo$ja8$1@sibyl.sunrise.ch> Organization: Ordina Finance Newsgroups: comp.lang.ada Date: 1998-02-15T00:00:00+00:00 List-Id: > I study Ada 95 at school and I don't know how I can retrieve the filenames > in a directory under UNIX (Solaris 2.?) and Windows (95 and NT). > > Is there a package to do that? > > Should I use the Windows API (It seems to be not portable to UNIX?) To do this portable you need to use a Posix binding. For Solaris there probably is a Florist version for GNAT, for Win95/NT there is a partial binding available (see my homepage: http://stad.dsl.nl/~jvandyk) Otherwise write a single package "directories" which contains the functionality you need. This package should have one spec (.ads) file and two implementations, one for Win95 (using the MS C Runtime Library) and one for Solaris (using libc). Success, Jerry.