IsFile
This member function tests to see whether the string is a valid full path file name or not.
BOOL IsFile( )
returns TRUE if the string is a filename that exist, otherwise FALSE
EX1
void string_IsFile_ex1() { //GetAppPath(TRUE) to get the Origin's program path, //and FALSE to get the User Files path. string strFile = GetAppPath(1) + "OriginC\\system\\Array.h"; //The file exists, should return TRUE. BOOL bRet = strFile.IsFile(); if(bRet) printf("\"%s\" is a valid file existed.", strFile); else printf("\"%s\" is not a valid file existed.", strFile); }
string::IsPath
origin.h