Reading a binary File : File Binary « File « Python
- Python
- File
- File Binary
Reading a binary File
f = open("/music/_singles/kairo.mp3", "rb")
print f
print f.tell()
f.seek(-128, 2)
print f.tell()
tagData = f.read(128)
print tagData
print f.tell()
Related examples in the same category