QT 读取txt文件的几种方法

  废话不说直接上代码 1. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 QString displayString; QFile file("/home/alvin/text.txt"); if(!file.open(QIODevice::ReadOnly | QIODevice::Text)) {     qDebug()<<"Can't open the file
相关文章
相关标签/搜索