G
Guest
Everytime I serialize a file I have to generate a Magic byte (say 16 bytes)Basically, if you start deserializing and don't see the magic number,
the contents is just the whole of the file.
If you *do* see the magic number, you then read whatever header
information you've put into the new files, and deserialize
appropriately.
and add them to file. But at the time of deserializing i wont be having that
magic number with me...(since i am serializing with new magic bytes every
time and I can desrialize any file in my application). So with the previous
version files, and I am taking the first 16 bytes i will not be able to tell
whether this is a magic byte or actual data.