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,aeb3845dd355cf6c X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Sequential_IO Date: 1999/08/19 Message-ID: <37BC277E.B17EEEFF@averstar.com>#1/1 X-Deja-AN: 514723229 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: <0a0133f8.48529b21@usw-ex0102-014.remarq.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-08-19T00:00:00+00:00 List-Id: 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