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.1 required=5.0 tests=BAYES_20,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,447a948bb64464c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-14 13:59:33 PST Newsgroups: comp.lang.ada Path: bga.com!news.sprintlink.net!howland.reston.ans.net!EU.net!uunet!psinntp!ss3!jakrzy From: jakrzy@ss3.magec.com (James A. Krzyzanowski) Subject: Re: I have a question... Message-ID: Organization: Magnavox Electronics Systems Company X-Newsreader: TIN [version 1.2 PL2] References: <1994Oct07.034523.161470@zeus.aix.calpoly.edu> Date: Thu, 13 Oct 1994 17:13:10 GMT Date: 1994-10-13T17:13:10+00:00 List-Id: Jana Wonder Twin #1 (kamundse@harp.aix.calpoly.edu) wrote: : I am working on a program and it asks the user to type in the name of : the file from which it should take data. : I would like the user to be able to specify (this is in UNIX) a file : that does not have to be within the directory from which they are : executing the program. : But I cannot figure out how I might (or even if I can) do this. I think : if the user types in ~survey/data or /survey/data that it will not : recognixe a ~ or / as a UNIX command but as characters in the file name. It may depend upon which Ada compiler you are using. We have HP 9000 workstations and are running HP/Alsys Ada. I have a program already that asks the user to enter a filename and then do some processing on it. I tried using "~" and "/" in the filename and it worked like a champ. If you don't have Alsys Ada, then the compiler may also provide the capability to execute UNIX commands within your Ada code. If this is the case, you could use UNIX to "cat" the file or whatever. -- --------------------------------------------------------------------------- James A. Krzyzanowski - Senior Software Engineer - AFATDS Magnavox Electronic Systems Company * Fort Wayne, IN 46808 * (219) 429-6446 E-Mail : jak@pseserv2.magec.com