int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QFile file("textFileAAA.txt");
if(file.open(QIODevice::ReadOnly))
{
char buffer[2048];
qint64 lineLen = file.readLine(buffer,sizeof(buffer));
if(lineLen!=-1)
{
qDebug()<<buffer;
}
}
return a.exec();
}
QFile file("textFileAAA.txt");
file.open(QIODevice::ReadOnly)
file.readLine(buffer,sizeof(buffer)