Check to find the filename that does not already exist
bool get_next_file_name( string & strFilename, bool bCheckCreatePath = true, bool bKeepPostfixFormat = true )
true if strFilename is a good new file name that is not in conflict with existing files
EX1
int get_next_file_name_ex1() { string str = GetAppPath() + "origin.ini"; bool bRet = get_next_file_name(str); ASSERT(bRet); string strOld = GetAppPath() + "origin.ini"; ASSERT(strOld != str);// since origin.ini must already existed return 0; }
origin.h