摘要: 一、 Qt 中的读文本的内容 QTextStream 流读取文件中的内容,如读取每行的内容会自动去除行尾的换行符 \n,而 QByteArray会保存所有的字符,不会去除末尾的换行符。 1. 以 QTextStream 流的形式来读取文件中的内容。 #include <QFile> #include 阅读全文
posted @ 2023-10-18 15:29 Jeffxue 阅读(274) 评论(0) 推荐(0) 编辑