If you want to use a QDataStream, it would be the best. Your idea is unfortunately not endian-safe. If you do not want to use a QDataStream, please look at this thread of the koffice-devel mailing list: http://lists.kde.org/?t=101094380900037&r=1&w=2 Feel free to ask, if you do not understand something. Have a nice day/evening/night! On Wednesday 30 January 2002 20:50, Erik Sigra wrote: > Wednesday 30 January 2002 19.58 skrev Thiago Macieira: > > Huh... sorry. My bad. A simple typo caused all that hassle. I've fixed > > it, but I'll have to wait to commit to CVS (we're right now frozen for > > the release of beta2). > > Good to hear that it will be fixed! Now I just wonder what I have to do > when I actually want to write an integer? > > Should I use "writeBlock(static_cast(&my_integer), 4)"? > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<