Quote Originally Posted by anda_skoa View Post
Yes, and it also makes map3 only contain the last map2 for each key, which will alway be only one entry since it is cleared for every line in the file.

My understanding was that the programs should keep all entries for a "map3" key, not just the last pair.
You are absolutely right. It has to be as you say or it will replace and not append.

Quote Originally Posted by anda_skoa View Post
I am not sure what you mean, QFile is a QIODevice subclass, it has read/write functions for QByteArray.
Sorry, I though you were referring to QFile::readAll() and work from there.

I will explore the use of QByteArray to avoid the conversion to QString.

Thank you very much!