CFilefile("1.txt",CFile::modeWrite);//
char * pbuf;
// int len=file.GetLength();
pbuf=new char[10];
strcpy(pbuf,"xxxx");
CStringstr="aaaaaaaaaaaaaaa";
// file.Read(pbuf,len);
file.Write(str,str.GetLength());
// pbuf[len]='\0';
file.Close();
向txt写数据
最新推荐文章于 2022-05-18 10:25:20 发布