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,be8d5a2eabb60989 X-Google-Attributes: gid103376,public From: "Tarjei T. Jensen" Subject: Re: Using Text_Io.Open Date: 1997/11/10 Message-ID: <34674800.5057@online.no>#1/1 X-Deja-AN: 288347857 References: Organization: Jensen programvareutvikling Newsgroups: comp.lang.ada Date: 1997-11-10T00:00:00+00:00 List-Id: AA HOLMES wrote: > > Hello. I'm a student studying Ada in a Unix enviroment. > When you open files using Text_Io.Open command you can specify a path name > for the file. Unfortunatly I want to use the '~' to specify the directory > /home/(user) > user been the users login name. So far I have to recompile the source > everytime Someone asks for a copy of my program. > So for example if someone with login name psdrayto asked for a copy, I > would have to change the file name to /home/psdrayto/config and then > recompile. Is there a way to use system Variables or shortcuts in Ada ? > I belive that with GNAT command line stuff has an extension that allows you to have a look at environment variables. I belive that ACT has some online documentation at http://www.gnat.com. If I'm wrong about the documentation the compiler and some documentation is available from ftp://cs.nyu.edu/pub/gnat. Greetings, -- // Tarjei T. Jensen // tarjei@online.no || voice +47 51 62 85 58 // Support you local rescue centre: GET LOST!