我想将str2
打印到messagebox,但没有打印任何内容。这是代码..
char str2[256];
fstream file_op2("C:\\PROGRA~1\\executables\\path.txt",ios::in);
file_op2.getline(str2, 256);
file_op2.close();
CString mycustompath;
mycustompath = str2;
MessageBox(NULL,mycustompath.GetBuffer() , L"read custom path", MB_OK);