Created
March 30, 2018 03:09
-
-
Save j2doll/36c4aa9f9273a371e7d59edd9e188b24 to your computer and use it in GitHub Desktop.
Tes tCArchive CString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TCHAR pFileName[] = _T("test123.test"); | |
| CFile f; | |
| if( !f.Open( pFileName, CFile::modeCreate | CFile::modeWrite ) ) { | |
| #ifdef _DEBUG | |
| afxDump << _T("Unable to open file\n"); | |
| exit( 1 ); | |
| #endif | |
| } | |
| CArchive ar( &f, CArchive::store ); | |
| CString STR1 = _T("hello"); | |
| ar << STR1 ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment