Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site philabs.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!genrad!panda!talcott!harvard!cmcl2!philabs!brb
From: brb@philabs.UUCP (Brian Bertan)
Newsgroups: net.micro.pc
Subject: Re: Re: Pathnames in "C" compilers (Help!)
Message-ID: <463@philabs.UUCP>
Date: Tue, 1-Oct-85 11:33:09 EDT
Article-I.D.: philabs.463
Posted: Tue Oct  1 11:33:09 1985
Date-Received: Sat, 5-Oct-85 07:43:19 EDT
References: <450@philabs.UUCP> <103700016@ima.UUCP>
Organization: Philips Labs, Briarcliff Manor, NY
Lines: 21

>The function:
>          infile=fopen("c:\usr\text\things.txt","r")
>returns NULL to infile.
>The function:
>          infile=fopen("things.txt","r")
>does NOT return NULL -- it succeeds in opening the file  when the
>program is executed from directory \usr\text.

I received many responses, and I tried two suggestions:

"c:\\usr\\text\\things.txt" worked with both the Lattice and Mark 
Williams compilers.

"c:/usr/text/things.txt" did not work with either compiler.

My thanks to everyone for helping me with this.

                                                  Brian Bertan
						  Philips Labs
						  Briarcliff Manor, NY
{allegra | decvax | seismo}!philabs!brb           (914) 945-6309