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!linus!philabs!brb From: brb@philabs.UUCP (Brian Bertan) Newsgroups: net.micro.pc Subject: Pathnames in "C" compilers (Help!) Message-ID: <450@philabs.UUCP> Date: Fri, 20-Sep-85 19:38:24 EDT Article-I.D.: philabs.450 Posted: Fri Sep 20 19:38:24 1985 Date-Received: Sun, 22-Sep-85 17:02:33 EDT Distribution: net Organization: Philips Labs, Briarcliff Manor, NY Lines: 27 I am unable to open files using a directory search with either the Mark Williams or Lattice "C" compilers. The file really does exist in the specified directory. When I exclude the pathname from the fopen statement, and execute the program from the directory \usr\text, the file opens properly. 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. Does anyone know why I can't properly use a pathname in fopen() ? Thanks, Brian Bertan Philips Labs Briarcliff Manor, NY {allegra | decvax | seismo}!philabs!brb (914) 945-6309