delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/23/08:41:31

Xref: news2.mv.net comp.lang.c:81314 comp.lang.c++:102908 comp.os.msdos.djgpp:7796
From: Lawrence Kirby <fred AT genesis DOT demon DOT co DOT uk>
Newsgroups: comp.lang.c,comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: fopen problem.
Date: Wed, 21 Aug 96 16:26:27 GMT
Organization: none
Lines: 22
Message-ID: <840644787snz@genesis.demon.co.uk>
References: <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au> <3219B4F3 DOT 2A41 AT iti-oh DOT com>
Reply-To: fred AT genesis DOT demon DOT co DOT uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <3219B4F3 DOT 2A41 AT iti-oh DOT com> bjs AT iti-oh DOT com "Brian Sayatovic" writes:

>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.
>
>
>You sure can.  On most UNIX file systems, you would use
>"/path/name/file.name".  The only difference is that most UNIX operating
>systems use a forward slash instead of a backslash.

All Unix OSs do, and DOS accepts forward slashes too. It is only
COMMAND.COM that requires backslashes.

-- 
-----------------------------------------
Lawrence Kirby | fred AT genesis DOT demon DOT co DOT uk
Wilts, England | 70734 DOT 126 AT compuserve DOT com
-----------------------------------------

- Raw text -


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