qt 文本读写

//           QString sFilePath = "/home/d5000/flag0.txt";

//           QFile file(sFilePath);

//           //方式:Append为追加,WriteOnly,ReadOnly

//           if (!file.open(QIODevice::Append|QIODevice::Text)) {

//               exit(-1);

//           }

//           QTextStream fout(&file);

//           fout <<  QString::fromStdString(_CommonFunction_::ConvertFunction::ConvertDoubleToString(it->second.VoltageLevel)) <<endl;

//           fout.flush();

//           cout<<"flag0 = "<<flag0<<endl;

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页