Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!unido!rmi!zentrale From: zentrale@rmi.UUCP Newsgroups: comp.lang.c Subject: Re: 2 questions (Turbo C) Message-ID: <702@rmi.UUCP> Date: Sun, 30-Aug-87 13:48:35 EDT Article-I.D.: rmi.702 Posted: Sun Aug 30 13:48:35 1987 Date-Received: Tue, 1-Sep-87 04:19:29 EDT References: <9034@brl-adm.ARPA> Reply-To: wsiebeck@rmi.UUCP (Wolfgang Siebeck) Organization: RMI Net, Aachen, W.Germany Lines: 25 In article <9034@brl-adm.ARPA> bonak%cs.uiowa.edu@RELAY.CS.NET (Esmail Bonakdarian) writes: : I am using Turbo C and have the following problem trying to : open a file in a program: : : : if ( (infile = fopen("c:\temp\helpfile", "r")) == NULL ) try: infile = fopen("c:/temp/helpfile", "r") or : infile = fopen("c:\\temp\\helpfile", "r") Turbo C Users Guide p. 132 : : Also does anybody know a way of getting MS-DOS to use the return value of : an exit(value) in a program? I.e. I'd like to know (at a DOS level) : whether a program terminated with exit(0) or exit(1). use "if errorlevel x goto ..." (highest first!) : : thanks in advance for any info. : : esmail Wolfgang