How can I examine the access mode that was used to open a particular CFile or file handle.
Posted on 2004-07-31
I am writing a program to read a CFile or file handle that is passed into the function.
I find that if the file is opened in a wrong mode, I will get an error.
To avoid handling an error and fails I want to examine the CFile or file handle that was passed in.
So if the file is not opened appropriately, I can close the file and reopen it in the appropriate mode.
Is there a way I can examine and find out HOW was a particular CFile or file handle opened?