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: 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 Precedence: bulk "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