标签:
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();
C++指定路径写入文件
原文地址:http://my.oschina.net/u/1388669/blog/365426