包含的头文件:#include <fstream>
bool CMaked::ReadFileMake(CString filePath, CString &isChange) { //filePath为文档的全路径 ifstream in(filePath, ios_base::in); if (!in) { return false; } char buf[255] = { 0 }; in.getline(buf, 255); isChange = buf; return true; }
包含的头文件:#include <fstream>
bool CMaked::ReadFileMake(CString filePath, CString &isChange) { //filePath为文档的全路径 ifstream in(filePath, ios_base::in); if (!in) { return false; } char buf[255] = { 0 }; in.getline(buf, 255); isChange = buf; return true; }