C++读取TXT文件识别特定内容修改

上传者: 43367829 | 上传时间: 2022-06-22 15:42:54 | 文件大小: 32.37MB | 文件类型: ZIP
由于近期需要将一份Word文档转到Markdown格式,但是文件内容较大,自动转换工具转换不能完全满足我的要求,存在问题如下:导出的图片名乱码,一部分换行存在问题。 针对图片名乱码的问题,由于word中的图片拥有一定的顺序,所以根据该顺序对导出的md文件中图片语法识别进行更换合适的文件名。 其次,由于我需要将该文件根据章节进行拆分,这部分的内容程序也已经完成, 程序中实现了UTF-8格式转GBK格式,使用stream对TXT进行读取并识别,获取到需要的信息后对信息进行更改,最后依据一级标题对文件进行拆分。

文件下载

资源详情

[{"title":"( 57 个子文件 32.37MB ) C++读取TXT文件识别特定内容修改","children":[{"title":"word导出md章节拆分图像改名","children":[{"title":"word导出md章节拆分图像改名.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"word导出md章节拆分图像改名","children":[{"title":"v16","children":[{"title":"Browse.VC.db <span style='color:#111;'> 37.45MB </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 26.50KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"aad0e0c01dd53adc","children":[{"title":"MAIN.ipch <span style='color:#111;'> 77.13MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"word导出md章节拆分图像改名.vcxproj <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"MedianFileStore","children":[{"title":"100ASK_STM32MP157_M4_UserMnual_V1.1.1_PutOut.txt <span style='color:#111;'> 192.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"InputFileStore","children":[{"title":"100ASK_STM32MP157_M4_UserMnual_V1.1.1.txt <span style='color:#111;'> 191.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"word导出md章节拆分图像改名.sln <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"FinalFileStore","children":[{"title":"2.18 SPI—软件模拟.md <span style='color:#111;'> 9.91KB </span>","children":null,"spread":false},{"title":"2.1 资源分配.md <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"2.9 DMA—MemoryToMemory.md <span style='color:#111;'> 7.16KB </span>","children":null,"spread":false},{"title":"2.12 ADC—使用DMA.md <span style='color:#111;'> 5.25KB </span>","children":null,"spread":false},{"title":"2.4 系统时钟—HSE.md <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"2.13 ADC—使用DMA.md <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"2.16 I2C—软件模拟.md <span style='color:#111;'> 10.92KB </span>","children":null,"spread":false},{"title":"2.11 通用定时器—us延时.md <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"2.19 SPI—硬件模式.md <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"1.3 STM32CubeIDE.md <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"1.4 STM32Cube生态.md <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"3.3 A7_M4内核态通信.md <span style='color:#111;'> 7.11KB </span>","children":null,"spread":false},{"title":"1.6 M4调试.md <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"2.15 DAC—软件触发.md <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"1.5 开发流程.md <span style='color:#111;'> 19.06KB </span>","children":null,"spread":false},{"title":"2.3 系统时钟—HSI.md <span style='color:#111;'> 8.69KB </span>","children":null,"spread":false},{"title":"2.2 闪烁LED灯.md <span style='color:#111;'> 5.96KB </span>","children":null,"spread":false},{"title":"2.6 按键中断.md <span style='color:#111;'> 9.10KB </span>","children":null,"spread":false},{"title":"3.1 FreeRTOS.md <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"1.2 STM32CubeMX.md <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"2.12 SysTick定时器-us延时.md <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"2.20 CAN通信.md <span style='color:#111;'> 15.60KB </span>","children":null,"spread":false},{"title":"2.8 串行通信—RS485.md <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"2.5 按键扫描.md <span style='color:#111;'> 6.21KB </span>","children":null,"spread":false},{"title":"3.2 A7_M4用户态通信.md <span style='color:#111;'> 15.51KB </span>","children":null,"spread":false},{"title":"1.7 工程结构分析.md <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"2.14 ADC—内部温度.md <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"2.17 I2C—硬件模式.md <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"2.21 WWDG—窗口看门狗.md <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"2.7 串行通信—串口打印.md <span style='color:#111;'> 10.54KB </span>","children":null,"spread":false},{"title":"1.1 固件库.md <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.43KB </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.vcxproj.filters <span style='color:#111;'> 966B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"word导出md章节拆分图像改名.tlog","children":[{"title":"word导出md章节拆分图像改名.lastbuildstate <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 29.32KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"vc142.pdb <span style='color:#111;'> 564.00KB </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.pdb <span style='color:#111;'> 4.36MB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 394.65KB </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.log <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.exe <span style='color:#111;'> 128.50KB </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.exe.recipe <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 355.00KB </span>","children":null,"spread":false},{"title":"word导出md章节拆分图像改名.ilk <span style='color:#111;'> 874.27KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明