Binary file(skeleton)import export script

Hello, there is a file format, this file is a skeleton and I want to convert this file, my friend wrote import for this file and it works, but I need to revert back to the old original file structure, but there is a problem while exporting. thanks everyone.