delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/17/14:21:08

Date: Sat, 17 Aug 1996 20:16:55 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
To: Cs3prj Group 04 <cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: fopen problem.
In-Reply-To: <4v1gkv$kld@lion.cs.latrobe.edu.au>
Message-ID: <Pine.NEB.3.95.960817201049.7548B-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On 16 Aug 1996, Cs3prj Group 04 wrote:

>Under UNIX, can you pass a file name with a path to fopen? If so how do you
>do it? I know that, under DOS, you do it like so : c:\\directory\\filename.ext.
First, in UNIX there's no such a thing as 'disk letter'. Instead you have
'file systems' which may, of course, reside on physically different devices
(doesn't matter whether it is a FDD, HDD or CD) - they are just 'mounted'
(i.e. sort of 'joined' in DOS) to the root file system. For the user they look
just like directories, or folders if you will. So, you can forget about the
'x:' part of path name. The rest is just like in DOS, with the exception that
the path parts are divided with slash '/', not the backslash like in DOS.
Also note that in UNIX there might be more file name parts divided with dots.

Mark

/***********************************************************/
/** Maybe it was infatuation or the thrill of a chase?   **/          
/** Maybe you were always beyond my reach and my heart **/
/**   was playing safe?                     ***********/ 
/** But was that love in your eyes I saw, **/
/**   or the reflection of mine?        **/
/** I'll never really know for sure,  **/
/** You never really gave me time!  **/
/** Won't you give me that time?  **/ 
/**          "Cindirella Search" **/
/********************************/
Visit my homepage: http://ananke.amu.edu.pl/~grendel

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019