lumina-config/mainUI.cpp
QStringList MainUI::readFile(QString path){
  QStringList out;
  QFile file(path);
  if(file.open(QIODevice::ReadOnly | QIODevice::Text)){
    QTextStream txt(&file);
    while(!txt.atEnd()){
      out << txt.readLine();
    }
    file.close();
  }
  return out;
}
//Read/overwrite a text file
Read/overwrite a text file
Read / overwrite a text file
QStringList MainUI::readFile(QString path){
  QStringList out;
  QFile file(path);
  if(file.open(QIODevice::ReadOnly | QIODevice::Text)){
    QTextStream txt(&file);
    while(!txt.atEnd()){
      out << txt.readLine();
    }
    file.close();
  }
  return out;
}
QStringList MainUI :: readFile ( QString path ) { QStringList out ; QFile file ( path ) ; if ( file . open ( QIODevice :: ReadOnly | QIODevice :: Text ) ) { QTextStream txt ( & file ) ; while ( ! txt . atEnd ( ) ) { out << txt . readLine ( ) ; } file . close ( ) ; } return out ; }
Read/overwrite a text file
Read / overwrite a text file