that isn't what he mean't!!
random means that you have datablocks within a file (in a way like arrays) and each datablock (called type) may have that many subtypes as you want!
the way you propose by byte shit is a damned creepy workaround to a problem that even the dumbest basic dialects don't have ... and database isn't supportet too!
so if you want to make something "like" random file access you have to use arrays and save/load array and you will have to hope that DB works ... i often get arrays full of "0"s although i filled it with the coords of a whole matrix ... and no, it can't become too large! have 512megs RAM!