im using QTextStreamer to read a QFile using
if(file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream stream(&file);
line = stream.readLine();
//...
but in my requirement i need only to read particular set of lines only from my file. ex: if the file contains 1034 lines. user can select only from line 107 to 300 line to be read and display in a textBox.
how can i adjust the position of the qtextStream reader to point on the particular line of the file.
right now im implementing as
int count = 4;
while(count > 0)
{
line = stream.readLine();
count--;
}
line = stream.readLine();