If you want to figure out whether or not the file headers are intact, get a JPG file format specification and a hex editor. All JPG files begin with the bytes 255, 216, 255, 224, 0, 16, and then "JFIF". .AI files are actually a text format, so corruption should be quite easy to spot. (At least for version 8.0 which I have...)