The next example uses QTextStream to read a text file line by line: QFile file("in.txt"); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return; ...
確定! 回上一頁