Mail Archives: djgpp/1997/10/22/18:46:18
"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 -