11智能在线
新记
在mfc的上位机中,怎么将变量值保存到一个txt文件中
如题所述
举报该文章
相关建议 2016-03-30
int i = 56789;
CString str;
str.Format(_T("%d"),i);
file.Write(str.GetBuffer(),str.GetLength());
str.ReleaseBuffer();
file.Close();
追问
那些个括号里都需要写啥
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/smf8q8smms2m4m4pfp.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
MFC如何把int类型数据输入保存到txt文件中
怎样将在MFC中将变量的值写入TXT文本中
怎么实现用mfc的对话框输入字符并储存到一个txt文本
如何保存mfc列表控件中的数据到txt文件
MFC中,如何将一个CPP文件中的某个变量传递给另一个CPP...
在MFC工程中,我想添加一个功能使数据保存到文本文档中,程序...
MFC将编辑框还有单选按钮选择的结果,直接保存到一个。TXT...