www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/26/12:31:30

From: "Eric" <ericfingerhut AT mindspring DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: checking for file existence
Date: Sun, 26 Apr 1998 07:57:04 -0400
Organization: MindSpring Enterprises
Lines: 13
Message-ID: <6hv7er$5l4$1@camel29.mindspring.com>
NNTP-Posting-Host: pool-207-205-163-138.nwrk.grid.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Is there a way to check whether or not a file exists without actually
opening it?

I have my fopen in a separate encapsulated function. What I want to
accomplish is the ability to check if a user request for creating a new file
is on a file that already exists, and if so, provide the option to overwrite
it (which the encapsulated fopen will do if called).

TIA,

Eric


- Raw text -


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