在mfc的上位机中,怎么将变量值保存到一个txt文件中

如题所述

int i = 56789;
CString str;
str.Format(_T("%d"),i);
file.Write(str.GetBuffer(),str.GetLength());
str.ReleaseBuffer();
file.Close();追问

那些个括号里都需要写啥

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答