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."
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:
Post a Comment