#MFC Help Contradiction
I believe that I have found a contradiction in the documentation of
CFile, regarding whether destroying an open CFile will cause the associated
operating system file to be closed.
Below are excerpts from the on-line MFC 2.5 help file:
from CFile::Close :
" Closes the file associated with this object and makes the file
unavailable for reading or writing. If you have not closed the
file before destroying the object, the destructor closes it for you. "
from CFile::CFile :
" When the CFile object is destroyed the operating-system file
will not be closed. You must close the file yourself. "
Which one is right?
Justin Grant