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
相關文章
相關標籤/搜索