bool CEterPack::Create(CEterFileDict& rkFileDict, const char * dbname, const char* pathName, bool bReadOnly, const BYTE* iv) { if (iv) { m_bDecrypedIV = false; } m_stPathName = pathName; strncpy(m_dbName, dbname, DBNAME_MAX_LEN); strncpy(m_indexFileName, dbname, MAX_PATH); strcat(m_indexFileName, "xx"); m_stDataFileName = dbname; m_stDataFileName += "yy"; m_bReadOnly = bReadOnly; // bReadOnly ¸ğµå°¡ ¾Æ´Ï°í µ¥ÀÌÅÍ º£À̽º°¡ ¿­¸°´Ù¸é »ı¼º ½ÇÆĞ if (!CreateIndexFile()) return false; if (!CreateDataFile()) return false; bool bOverwrite = (iv != NULL); __BuildIndex(rkFileDict, bOverwrite);