Date: Wed, 5 Jan 2000 11:19:40 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Mike Demoulin 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: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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?