Hi,
does anyone know how to read a byte from a binary file and convert to an integer
I been busy for one hour on this, while it should be so simple, I keep running into errors after errors
f = open(filename, "rb")
a = bytearray(b'\x00')
a.append(f.read(1)) <<<<<<<<<<<<<<<<<<<<<<<< error
nameLen = int.from_bytes(bytes(a))
'bytes' object cannot be interpreted as an integer
I never thought this could be so complicated in python
thanks for your help