QT txt文件读写

读取txt文件 QString fileName=QCoreApplication::applicationDirPath()+"/data.txt";//文件地址 QFile file(fileName); if (!file.exists()) { return; //数据文件不存在! } //读 ui->textEdit->setReadOnly(true); ui->te
相关文章
相关标签/搜索