comp.lang.ada
 help / color / mirror / Atom feed
From: jakrzy@ss3.magec.com (James A. Krzyzanowski)
Subject: Re: I have a question...
Date: Thu, 13 Oct 1994 17:13:10 GMT
Date: 1994-10-13T17:13:10+00:00	[thread overview]
Message-ID: <CxMFty.CF9@ss3.magec.com> (raw)
In-Reply-To: 1994Oct07.034523.161470@zeus.aix.calpoly.edu

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



  parent reply	other threads:[~1994-10-13 17:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1994Oct07.034523.161470@zeus.aix.calpoly.edu>
     [not found] ` <SPIEGEL.94Oct10115716@moskau.bruessel.informatik.uni-stuttgart.de>
1994-10-12 17:33   ` I have a question David Emery
1994-10-14  1:21     ` Keith Thompson @pulsar
1994-10-14 16:46       ` Andre Spiegel
1994-10-14 14:16         ` David Emery
1994-10-14 21:32           ` Norman H. Cohen
1994-10-17 10:34             ` Ada programs in a UNIX environment (was Re: I have a question...) Andre Spiegel
1994-10-15 11:28       ` I have a question Keith Thompson @pulsar
1994-10-14  7:38     ` Henri Altarac
1994-10-14 21:25     ` Kevin Cline
1994-10-13 17:13 ` James A. Krzyzanowski [this message]
1994-10-13 15:29   ` David Emery
     [not found] <1994Oct07.034523.161470@zeus.aix>
1994-10-14 11:16 ` emery
1994-10-14 16:46 ` spiegel
1994-10-15 16:52 ` ncohen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox