Date: Sat, 17 Aug 1996 20:16:55 +0200 (MET DST) From: Mark Habersack Reply-To: grendel AT ananke DOT amu DOT edu DOT pl To: Cs3prj Group 04 cc: djgpp AT delorie DOT com Subject: Re: fopen problem. In-Reply-To: <4v1gkv$kld@lion.cs.latrobe.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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