Actually, what I'm currently using is QDataStream and seeking to certain offsets in the file that correspond to offsets of data members in my struct (by using the offsetof macro). Why do you say using QDataStream would be better in this case? Thanks.