Re: get data from readLine()
Code:
while(!st.atEnd()) {
qreal one, two;
st >> one >> two;
qDebug() << one << two;
}
Re: get data from readLine()
Quote:
Originally Posted by
wysota
Code:
while(!st.atEnd()) {
qreal one, two;
st >> one >> two;
qDebug() << one << two;
}
Thank you so much for your helping. Now it displays each number.
But it displays 0 0 at the end. Do you know what is the cause?
Re: get data from readLine()
Most likely you have a newline character as the last character of the file hence atEnd() returns false but it is not possible to read values.