Search This Blog

Tuesday, April 5, 2011

Interesting approach to metadata in a file format

Reading Stackoverflow:

"tend to store metadata in a structure at the END of the file, not the beginning. This has two advantages:

Truncated/unterminated files are easily detected.
Metadata footers can often be appended to existing files without impacting their reading code."

To read the file simply seek to the end - sizeof(Metadata) and search for the magicString

No comments: