QFilefile("in.txt");if(!file.open(QIODevice::ReadOnly|QIODevice::Text))return;while(!file.atEnd()) {QByteArrayline=file.readLine(); process_line(line); } TheQIODevice::Textflag passed toopen() tells Qt to convert Windows-style line terminators ("\r\n") into C++-style terminators...