int iNum =9; CString str2; str2.Format(TEXT("e:\\%d.txt"),iNum); CFile file( str2, CFile::modeRead | CFile::modeWrite | CFile::modeCreate ); file.Write( "你好", strlen("你好") ); file.Close();
时间: 2024-11-13 09:48:02
int iNum =9; CString str2; str2.Format(TEXT("e:\\%d.txt"),iNum); CFile file( str2, CFile::modeRead | CFile::modeWrite | CFile::modeCreate ); file.Write( "你好", strlen("你好") ); file.Close();