www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/25/11:41:42

Xref: news2.mv.net comp.lang.c:81660 comp.os.msdos.djgpp:7865
From: schlein AT umbc DOT edu (Jonas J. Schlein)
Newsgroups: comp.lang.c,comp.os.msdos.djgpp
Subject: Re: fopen problem.
Date: 25 Aug 1996 10:42:31 -0400
Organization: University of Maryland Baltimore County
Lines: 15
Message-ID: <4vpoon$t6h@umbc9.umbc.edu>
References: <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au>
NNTP-Posting-Host: umbc9.umbc.edu
NNTP-Posting-User: schlein
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Cs3prj Group 04 <cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au> 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.

Well a drive letter wouldn't have any meaning in UNIX, but other than that
just do:
      /directory/filename.ext

If I'm not mistaken the forward slashes will work in DOS as well (not from
the command prompt).
-- 
"If it wasn't for C, we would be using BASI, PASAL, and OBOL."

Jonas J. Schlein  (schlein AT gl DOT umbc DOT edu)

- Raw text -


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