Hi.
I often recover large amounts of files from drives that were overwritten.
Putting the directory structure back together with a program like R-Studio or GetDataBack is pretty straight forward.
But the contents of the files is questionable. It is possible that the disk areas were overwritten with other files.
Mostly we're looking for JPG files but also MP3 files and Microsoft Office documents and sometimes PDF files.
Right now for images I'm testing using LoadImage, if that works, then I log that the file is okay.
For other files, I'm just checking the first few characters for what I'd normally see in the header. However, this isn't a very thorough test.
So the question is, are there any good libs or calls in PureBasic that will help me test other files people would want to recover.
Ways to open any other standardized file that would fail with an error code if the file is corrupt?
Does that make sense at all?
Right now I'm pretty interested in MP3 and M4A files, but...