Home:ALL Converter>Python file to read in binary and write in xml

Python file to read in binary and write in xml

Ask Time:2011-11-17T22:10:48         Author:user2063

Json Formatter

I have a binary file which was created by a VBA file (I don't work with VBA or binary at all) but I need to get Python to read this binary file (which includes a list of inputs for a calculation) and then write these values into an xml file.

If I know the order of the inputs into the file that is created, is it possible to read the binary code line by line, to get input by input and then write into the xml?

I have to use Python rather than VBA since I am not authorised to change the original VBA files.

I apologise for the lack of information, I only know a bit of Python and have never worked with VBA or binary. I really appreciate any help anyone can give me! Thank you =)

Author:user2063,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/8168482/python-file-to-read-in-binary-and-write-in-xml
Joseph Le Brech :

If you have the VBA code that made the file you should be able to copy the data structure in python and then deserialize it.",
2011-11-17T14:23:16
yy