I need to read strings from foo.txt:
#include <QDebug>
#include <QFile>
#include <QStringList>
#include <QTextStream>
int main( int argc, char** argv )
{
QFile file("foo.txt");
if (!file.open(QIODevice::ReadOnly))
return 1;
QStringList stringList;
QTextStream textStream(&file);
textStream.readLine();
while (!textStream.atEnd())
stringList << textStream.readLine();
file.close();
qDebug() << stringList;
return 0;
}

file opened, but textStream always empty.
("Good day")which is what I would expect as you don't put the first line into the string list.