Date: Mon, 09 Oct 2000 17:50:09 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: jbfraleigh AT hotmail DOT com Message-Id: <2950-Mon09Oct2000175009+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h CC: djgpp AT delorie DOT com In-reply-to: <8rsftf$rsr$1@nnrp1.deja.com> (jbfraleigh@hotmail.com) Subject: Re: DJGPP, FreeDOS and file access References: <8rkmnt$8sq$1 AT nnrp1 DOT deja DOT com> <8rsftf$rsr$1 AT nnrp1 DOT deja DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: jbfraleigh AT hotmail DOT com > Newsgroups: comp.os.msdos.djgpp > Date: Mon, 09 Oct 2000 13:06:59 GMT > > FILE *fp; > > fp = fopen("TEMP.TMP", "r"); > if (!fp) > fprintf("Error."); > > With TC, it works fine. With DJGPP it prints "Error." It is not really relevant to tell what other compilers do, because it might as well be the bug in the other compiler. People have been asking you all kinds of questions in this thread, but for some reason you preferred not to answer them. Could you please go back and answer those questions? IIRC, one of the questions was about possible long file-name support in the version of FreeDOS you are using--if there is such a support, please try to turn it off and see if that works. Another question was whether you indeed have the file TEMP.TMP in the same directory where this program runs. (When fopen is called with "r", it fails if the file does not exist.) There were other questions, as far as I remember. Please reread the thread and try to answer them. It is very hard to help you if questions are ignored. Failing all that, please post a complete short test program which exhibits the problem on your machine, so others could try to compile and run it on theirs.