www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/20/10:09:53

Xref: news2.mv.net comp.lang.c:80914 comp.lang.c++:102386 comp.os.msdos.djgpp:7665
From: Brian Sayatovic <bjs AT iti-oh DOT com>
Newsgroups: comp.lang.c,comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: fopen problem.
Date: Tue, 20 Aug 1996 08:52:03 -0400
Organization: ITI
Lines: 18
Message-ID: <3219B4F3.2A41@iti-oh.com>
References: <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au>
NNTP-Posting-Host: rocket.iti-oh.com
Mime-Version: 1.0
To: Cs3prj Group 04 <cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.  As such, you need
not escape the slash as you do the backslash.  There are no drive
letters in UNIX, only path names.  And filenames and pathnames can
contain spaces and periods freely.
 
+-------------------------------------+
| Brian Sayatovic (bjs AT iti-oh DOT com)    |
| ----------------------------------- |
| International TechneGroup, Inc.     |
+-------------------------------------+

- Raw text -


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