Reads the entire content of the stream, and returns it as a QString. Avoid this function when working on large files, as it will consume a significant amount of memory.
Calling readLine() is better if you do not know how much data is available.
Definition at line 1550 of file qtextstream.cpp.
Referenced by MainWindow::loadFile(), and TextFinder::loadTextFile().
const QChar *readPtr;
if (!d->scan(&readPtr, &length, /* maxlen = */ 0, QTextStreamPrivate::EndOfFile))
QString tmp = QString(readPtr, length);