delorie.com/archives/browse.cgi | search |
Xref: | news2.mv.net comp.lang.c:80410 comp.lang.c++:101737 comp.os.msdos.djgpp:7421 |
From: | stupy AT thecds DOT com (Steve Tupy) |
Newsgroups: | comp.lang.c,comp.lang.c++,comp.os.msdos.djgpp |
Subject: | Re: fopen problem. |
Date: | Sat, 17 Aug 1996 03:13:56 GMT |
Organization: | CompuData Systems |
Lines: | 16 |
Message-ID: | <4v3350$nqq@nntp.igs.net> |
References: | <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au> |
NNTP-Posting-Host: | igloo.thecds.com |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au (Cs3prj Group 04) yammered : >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. FILE *fp = fopen("/usr/local/bin/myfile_what_is_this_doing_here.txt", "rt"); or whatever open mode you prefer! Take care! Steve Tupy CompuData Systems Oshawa, Canada. stupy AT thecds DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |