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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7564859e9658fa48 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: How to be sure of if a file exist? Date: 1996/07/07 Message-ID: #1/1 X-Deja-AN: 167135364 references: organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-07T00:00:00+00:00 List-Id: Markus said "How can I make my program find out which files that exist in a certain directory?" There is no implementation independent way of doing this (indeed even the idea of a directory is somewhat implementation dependent). No doubt the operating system that provides the directories also provides some routines that answer your question. Find out what these routines are and call them. To call them from Ada, use pragma Import with the appropriate convention name. For example, if you find some Fortran routines that do what you want, call them using pragma Import (Fortran, ...)