| 126 | } |
| 127 | |
| 128 | bool Open(const tstring& strFileName, const tstring& strMode) |
| 129 | { |
| 130 | m_strFileName = strFileName; |
| 131 | #if _MSC_VER >= 1500 |
| 132 | return fopen_s(&m_pFile, CCnv::ConvertToString(strFileName).c_str(), |
| 133 | CCnv::ConvertToString(strMode).c_str()) == 0; |
| 134 | #else |
| 135 | m_pFile = fopen(CCnv::ConvertToString(strFileName).c_str(), |
| 136 | CCnv::ConvertToString(strMode).c_str()); |
| 137 | return m_pFile!=NULL; |
| 138 | #endif |
| 139 | } |
| 140 | |
| 141 | bool Close() |
| 142 | { |
no test coverage detected