www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/05/05:26:05

Date: Wed, 5 Jan 2000 11:19:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mike Demoulin <mad AT intersurf DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: What is the canonical way to find out if a file exists (in g++)?
In-Reply-To: <slrn874vuq.3vvmlg7.mad@asylum.fasttrack.net>
Message-ID: <Pine.SUN.3.91.1000105111921.7920d-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 4 Jan 2000, Mike Demoulin wrote:

> In g++, I have used stat (), __file_exists (), and ifstream ().good ().
> All of these can return false negatives under NT. What am I doing wrong?

I have never heard about `stat' and `__file_exists' returning false
negatives, in any environment.  Please post the details (a short
program and the directory listing by DIR would be nice).

What version of DJGPP are you using, btw?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019