cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/22/18:46:18

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Checking to see if I file exists
Date: 22 Oct 1997 17:02:42 GMT
Organization: The National Capital FreeNet
Lines: 16
Message-ID: <62lbji$bp2@freenet-news.carleton.ca>
References: <Pine DOT SUN DOT 3 DOT 95 DOT 971020141415 DOT 22091B-100000 AT lurch-fddi>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet3.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"H. Anthony Hoyt" (hahoyt AT eng2 DOT uconn DOT edu) writes:
>      I can't seem to remember how to check to see if I file exists or not.
> What I want is, if the user enters in a file name, to check to see if the
> file exists.  If so, I want to open the file, not overwrite it, read from
> the file then recreate the file before I finaly save the file.  (All in
> binary)  Any advice would be welcome.  Thanks

This is a C question, not a DJGPP question. There is an 'exists' function
in stdio.h.

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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