2015年12月23日

读取一个txt文档中的内容

摘要: 包含的头文件:#include bool CMaked::ReadFileMake(CString filePath, CString &isChange){ //filePath为文档的全路径 ifstream in(filePath, ios_base::in); if (!in)... 阅读全文

posted @ 2015-12-23 15:49 !!-阳光-!! 阅读(314) 评论(0) 推荐(0) 编辑

将一个字符数组转换成一个字符串

摘要: 例:char buf[100] = "Hello World!"; csting str; str = buf;//此时str = "Hello World!"; 阅读全文

posted @ 2015-12-23 15:48 !!-阳光-!! 阅读(1074) 评论(0) 推荐(0) 编辑

用C++向一个txt文档中写数据

摘要: bool CMaked::WriteFileMake(CString filePath, const char *isChange){ ofstream file; //filePath为该txt文档的全路径 file.open(filePath, ios::out);//以写的方式打... 阅读全文

posted @ 2015-12-23 15:45 !!-阳光-!! 阅读(1531) 评论(0) 推荐(0) 编辑

导航