Article View: comp.os.msdos.programmer
Article #93FOPEN command
From: BL0528540-Bill Oswald ALC2817
Date: Mon, 02 Nov 1992 21:35
Date: Mon, 02 Nov 1992 21:35
12 lines
972 bytes
972 bytes
Here is a short question. If I have a line of code as follows:
stream=fopen("c:\foo\afile", "r")
The resulting executable works if afile is in the same directory
as the executable. If the above is correct the fopen command
should be able to find afile independant of where the executable
lives. But that does not seem to be the case. What am I doing wrong?
BTW, I am using borland c++ 3.1
Thanks in advance
Bill Oswald
wao@aluxs.att.com
Technical Details
Message-ID:
<1992Nov2.213552.20766@cbnewsm.cb.att.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!aluxs!waoShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!aluxs!wao From: wao@aluxs.att.com (BL0528540-Bill Oswald ALC2817) Subject: FOPEN command Organization: AT&T Distribution: usa Date: Mon, 2 Nov 1992 21:35:52 GMT Message-ID: <1992Nov2.213552.20766@cbnewsm.cb.att.com> Sender: news@cbnewsm.cb.att.com (NetNews Administrator) Nntp-Posting-Host: aluxs.cnet.att.com Lines: 13