I had the same question awhile back, but my respondees concluded that you cannot determine the open-ness of a
file with the run-time library functions alone. You must instead do the record keeping in your own program, to maintain the status of your files.
I was warned off testing for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.