delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/04/23:24:49

From: mad AT intersurf DOT com (Mike Demoulin)
Newsgroups: comp.os.msdos.djgpp
Subject: What is the canonical way to find out if a file exists (in g++)?
Message-ID: <slrn874vuq.3vvmlg7.mad@asylum.fasttrack.net>
User-Agent: slrn/0.9.5.7 (Windows)
Lines: 4
Date: Tue, 04 Jan 2000 23:09:11 GMT
NNTP-Posting-Host: 216.115.146.142
X-Complaints-To: news AT intersurf DOT net
X-Trace: dim.intersurf.net 947027351 216.115.146.142 (Tue, 04 Jan 2000 17:09:11 CST)
NNTP-Posting-Date: Tue, 04 Jan 2000 17:09:11 CST
Organization: Intersurf Online, Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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?


- Raw text -


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