3 of 3
added 2 characters in body; edited title
user avatar
user avatar
Read in binary data with python
I am very new to Python and I am trying to read in a file that partially contains binary data. There is a header with some information about the data and after the header binary data follow. If one opens the file in a texteditor it looks like this:
>>> Begin of header <<<
value1: 5
value2: 7
...
value65: 9
>>> End of header <<<
���ÄI›C¿���† ̈ ̈v@���ÄW]c¿��� U⁄z@���@¬P\¿����∂:q@���@Ò ̊U¿���†÷Us@���`aw4¿��� :‘m@���@À›9@���ÄAs@���¿‹ ¿����ır@���¿@&%@���†„bq@����* ̇-@��� [q@����ÚN8@����
Òo@���@√·T@���†‰zm@����9\@����ÃÜq@����€dZ@���`Ëäs@���†∏8I@���¿¬Ot@���†�6
an additional problem is that I did not create the file myself and do not now if those are double or float data.
So how can I interpret those data?
Glostas
- 1.2k
- 2
- 12
- 22
lang-py