Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 (Fortune 01.1b1); site graffiti.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!qantel!dual!lll-crg!seismo!ut-sally!ut-ngp!shell!graffiti!peter
From: peter@graffiti.UUCP (Peter da Silva)
Newsgroups: net.micro.pc
Subject: Re: Pathnames in "C" compilers (Help!)
Message-ID: <243@graffiti.UUCP>
Date: Tue, 24-Sep-85 18:23:49 EDT
Article-I.D.: graffiti.243
Posted: Tue Sep 24 18:23:49 1985
Date-Received: Sun, 29-Sep-85 05:41:55 EDT
References: <450@philabs.UUCP> <160@micropro.UUCP>
Distribution: net
Organization: The Power Elite, Houston, TX
Lines: 20

> >The function:
> >
> >          infile=fopen("c:\usr\text\things.txt","r")
> >
> >returns NULL to infile.
> > ...
> >Does anyone know why I can't properly use a pathname in fopen() ?
> >                                                  Brian Bertan
> 
> Sounds to me that you need to double the backslashes in your pathname,
> a problem that Unix C programmers would never encounter.  Try:
> 
>           infile=fopen("c:\\usr\\text\\things.txt","r")
> 

Also try:

	infile = fopen("c:/usr/text/things.txt","r");

In theory this should work.