comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Sequential_IO
Date: 1999/08/19
Date: 1999-08-19T00:00:00+00:00	[thread overview]
Message-ID: <37BC277E.B17EEEFF@averstar.com> (raw)
In-Reply-To: 0a0133f8.48529b21@usw-ex0102-014.remarq.com

Shawn Barber wrote:
> 
> I am using Sequential_IO to read some data from a file. Why
> do I need to specify the full path of the file being read
> when I'm running the program from the directory in which the
> file resides? I'm getting the filename from the command line
> and in I continually get a Name_Error unless I specify the
> path as well. Any ideas? 

On non-Unix systems, the notion of the "current directory" is generally
more confusing than on Unix systems.  For the Mac, the concept doesn't
really exist.  On Win* systems, there are multiple "current" directories,
one for each drive letter (everyone who thinks drive letters are the
dumbest O/S idea of all time raise their hand ;-).  On VMS systems,
the current directory is defined by various environment variables, I believe.

So unless you are on Unix, knowing exactly what is the "current directory"
can be tricky.

> ..., I didn't see anything in the LRM,
> but that doesn't mean it's not there. Thanks.

The intent of the LRM is certainly that you may take advantage of
things like "current directory" or other shortcuts/links.  FWIW, the "Name"
function is supposed to always return a full, unambiguous path name,
no matter how the file was opened.  Unfortunately, all of these
concepts are O/S dependent.

> Shawn
> 
> * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
> The fastest and easiest way to search and participate in Usenet - Free!

-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  parent reply	other threads:[~1999-08-19  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-18  0:00 Sequential_IO Shawn Barber
1999-08-18  0:00 ` Sequential_IO Larry Kilgallen
1999-08-18  0:00 ` Sequential_IO Ted Dennison
1999-08-18  0:00 ` Sequential_IO Marin David Condic
1999-08-19  0:00 ` Tucker Taft [this message]
1999-08-19  0:00   ` Sequential_IO Marin David Condic
1999-08-19  0:00   ` Sequential_IO Ted Dennison
1999-08-19  0:00     ` Sequential_IO Robert Dewar
1999-08-21  0:00     ` Sequential_IO Simon Wright
1999-08-19  0:00 ` Sequential_IO Shawn Barber
1999-08-19  0:00   ` Sequential_IO David C. Hoos, Sr.
1999-08-19  0:00   ` Sequential_IO Ted Dennison
1999-08-19  0:00   ` Sequential_IO Marin David Condic
replies disabled

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