hello everyone,
i have been ssaving some variable values in a file using QFile and QDataStream.
the variables are of types Q_UINT8, Q_INT8, Q_UINT32, Q_INT32, float, double and even QString...
write and read operation work wonderfully so far..

but now i need to be able to access certain variables down the stream..
so if i have written the stream in the file as:

QDataStream ds(&aQFile)
ds<<aUINT8<<aUINT32<<aINT8<<aFloat<<aDouble<<aQStr ing<<anotherINT8..... etcetc

and now i want to access directly aINT8, how do i do it?
i read in te documentation at the QFile::at(Offset off) function... i guess the offset is just an integer number of the counted bytes till the beginning of the variable i want to read..
however i wonder how im gonna compute the offsets..
mean in the above case its easy to find the offset of aINT8.. it is 5 (bytes) ... or not?
however how can i get the offset of anotherINT8 ?
thank you for your help
nass