Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/3/84; site teddy.UUCP
Path: utzoo!linus!philabs!cmcl2!harvard!talcott!panda!teddy!jpn
From: jpn@teddy.UUCP
Newsgroups: net.micro.pc
Subject: Re: Pathnames in "C" compilers (Help!)
Message-ID: <1332@teddy.UUCP>
Date: Mon, 23-Sep-85 18:07:14 EDT
Article-I.D.: teddy.1332
Posted: Mon Sep 23 18:07:14 1985
Date-Received: Wed, 25-Sep-85 12:34:27 EDT
References: <450@philabs.UUCP> <103700016@ima.UUCP>
Reply-To: jpn@teddy.UUCP (John P. Nelson)
Organization: GenRad, Inc., Concord, Mass.
Lines: 17

>> I am unable to open files using a directory search with either the
>> Mark Williams or Lattice "C" compilers. ...
>> 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 ...
>
>Try opening "c:\\usr\\text\\things.txt".  Remember, this is C and \t
>turns into a tab character.

Alternatively, try opening "c:/usr/text/things.txt".  MSDOS itself understands
'/' as a directory seperator just as well as '\\'.  Too bad microsoft opted to
use '/' as the option introducer character for command line parsing.  On the
other hand, Thank goodness microsoft left the back door open and allows me to
change the option character to '-'.  At least in MSDOS 2.XX.