www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/16/18:45:31

Xref: news2.mv.net comp.lang.c:80288 comp.lang.c++:101585 comp.os.msdos.djgpp:7398
Newsgroups: comp.lang.c,comp.lang.c++,comp.os.msdos.djgpp
From: Dan DOT Pop AT cern DOT ch (Dan Pop)
Subject: Re: fopen problem.
Message-ID: <danpop.840217733@news.cern.ch>
Sender: news AT dxnews DOT cern DOT ch (USENET News System)
Organization: CERN European Lab for Particle Physics
References: <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au>
Date: Fri, 16 Aug 1996 17:48:53 GMT
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au> cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au (Cs3prj Group 04) writes:

>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.

Did you try to do it in the most natural way and it didn't work?

BTW, in DOS it's better to do it like this: c:/directory/filename.ext.
It's more readable and less error-prone (is there any DOS programmer who
_never_ forgot to duplicate the backslash? :-)

Dan
--
Dan Pop
CERN, CN Division
Email: Dan DOT Pop AT cern DOT ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland

- Raw text -


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