How about this?
Qt Code:
  1. while (!fileRead.atEnd()) {
  2. b += f.readLine();
  3. }
To copy to clipboard, switch view to plain text mode