どの形式で収められるかは Reference Documentの
Format of the QDataStream Operators を参照

QFile::open でテキストを開くとき、フラグ に QIODevice::Text を
入れておくと、改行文字を"\n"に統一してくれるので便利