On Thu, 15 Jan 2004 13:17:45 +0000, Fraser Ross wrote:
I want to prevent std::basic_ifstream from opening a file for reading when
it is passed the file name with any wrong case of a letter. If that can't
be done is there anything else that could be done before opening? The
program is for Windows.
Easy. Just check the string containing the filename if it has the right
case. I suspect you mean that it should match the case of the file as it
appears in the directory though, and for that you'll have to look for
answers in a Windows oriented group.
HTH,
M4