Since the Eyeshot proprietary file format can't read newer versions, it could be helpful to check the file version before proceeding to read it.
The below code shows how to find invalid files according to the version stored in the file header.
FileHeader header = new ReadFile(fileName, true).GetHeader();
if (header.Version > devDept.Serialization.Serializer.LastVersion)
Console.WriteLine("Unsupported Eyeshot file version.");
Comments
Please sign in to leave a comment.