文件操作
文章平均质量分 80
AyaJohn
我只是一只萌新
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++ 修改txt某一行或在txt底部插入一行
环境:vs2019,Unicode,C++ 代码段: #pragma once#include <afxwin.h>#include <iostream>#include <cstring>#include <string>#include <fstream> #include <direct.h>bool ChangeTxtValueAndKey(string sKey, string sValue){原创 2021-03-26 14:07:57 · 2093 阅读 · 0 评论 -
C++ 修改txt某一行内容
vs2019,Unicode,C++ 代码: #pragma once#include <afxwin.h>#include <iostream>#include <cstring>#include <string>#include <fstream> #include <direct.h>bool GetTxtValue(_In_ string sKey,_Out_ string * strTxtValue)原创 2021-03-26 13:52:23 · 3655 阅读 · 0 评论 -
MFC 配合编辑框获取TXT文件某一行或修改某一行
环境:vs2019,Unicode,MFC 代码段: #pragma once#include <afxwin.h>#include <iostream>#include <cstring>#include <string>#include <fstream> #include <direct.h>bool GetTxtValue(_In_ string sKey, _In_ int iDlgId, ..原创 2021-03-26 13:44:28 · 1421 阅读 · 0 评论
分享