Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.16 $; site ima.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!decvax!cca!ima!johnl From: johnl@ima.UUCP Newsgroups: net.micro.pc Subject: Re: Pathnames in "C" compilers (Help!) Message-ID: <103700016@ima.UUCP> Date: Sun, 22-Sep-85 14:58:00 EDT Article-I.D.: ima.103700016 Posted: Sun Sep 22 14:58:00 1985 Date-Received: Tue, 24-Sep-85 03:33:02 EDT References: <450@philabs.UUCP> Lines: 17 Nf-ID: #R:philabs:-45000:ima:103700016:000:596 Nf-From: ima!johnl Sep 22 14:58:00 1985 /* Written 7:38 pm Sep 20, 1985 by brb@philabs in ima:net.micro.pc */ > 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. John Levine, ima!johnl PS: MS-DOS and the C language clearly were not born to be friends.